Serhiy Storchaka added the comment: FileIO repr now looks confusing:
>>> sys.stdout.buffer.raw <_io.FileIO name='<stdout>' mode='wb' closefd='0'> The closefd attribute is not a string '0' or '1', it is boolean value True or False. Here is a patch which fixes a repr. And I think that documentation part of the patch should be backported. ---------- nosy: +serhiy.storchaka resolution: fixed -> stage: -> patch review status: closed -> open versions: +Python 3.5 -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file36977/io_fileio_repr_closefd.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17401> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com