[issue18534] File "name" attribute should always be a text string
Antoine Pitrou
report at bugs.python.org
Tue Jul 23 15:55:19 CEST 2013
Antoine Pitrou added the comment:
You can never assume that "name" will be a string:
>>> f = open(0, "r")
>>> f.name
0
This may be a bit of a bad idea API-wise, but changing it now will start breaking code, so I think we should leave it as-is.
----------
nosy: +aronacher, pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18534>
_______________________________________
More information about the Python-bugs-list
mailing list