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 <rep...@bugs.python.org> <http://bugs.python.org/issue18534> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com