This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients aronacher, ncoghlan, pitrou, vstinner
Date 2013-07-23.13:55:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374587719.13.0.659308958843.issue18534@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-07-23 13:55:19pitrousetrecipients: + pitrou, ncoghlan, vstinner, aronacher
2013-07-23 13:55:19pitrousetmessageid: <1374587719.13.0.659308958843.issue18534@psf.upfronthosting.co.za>
2013-07-23 13:55:19pitroulinkissue18534 messages
2013-07-23 13:55:18pitroucreate