[issue17401] io.FileIO closefd parameter is not documented nor shown in repr
Serhiy Storchaka
report at bugs.python.org
Mon Oct 20 10:02:29 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue17401>
_______________________________________
More information about the Python-bugs-list
mailing list