[issue5761] add file name to py3k IO objects repr()

Antoine Pitrou report at bugs.python.org
Wed Apr 15 12:45:47 CEST 2009


New submission from Antoine Pitrou <pitrou at free.fr>:

>>> f = open("py3k/__svn__/LICENSE")
>>> f
<TextIOWrapper encoding=UTF-8>
>>> f.buffer
<_io.BufferedReader object at 0x7f4b67569f68>
>>> f.buffer.raw
io.FileIO(3, 'rb')
>>> f.name
'py3k/__svn__/LICENSE'

It would probably be nice if f.name were reused for f's repr().

----------
components: Library (Lib)
messages: 85989
nosy: benjamin.peterson, pitrou
priority: normal
severity: normal
stage: test needed
status: open
title: add file name to py3k IO objects repr()
type: feature request
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5761>
_______________________________________


More information about the Python-bugs-list mailing list