Benjamin Peterson added the comment: I should note the C level fdopen has the the 2.x semantics. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21191> _______________________________________