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 vstinner
Recipients martin.panter, socketpair, vstinner
Date 2016-02-10.22:11:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455142284.42.0.227700106446.issue26318@psf.upfronthosting.co.za>
In-reply-to
Content
Hum, I don't think that it can be changed today.

io.open(int).name is an int since Python 2.6. Changing it may break applications for a little benefit.

> `io.open(fd, ...).name` returns numeric fd instead of None. This lead to some nasty bugs.

Why do you test None? Why not testing isinstance(name, int)?
History
Date User Action Args
2016-02-10 22:11:24vstinnersetrecipients: + vstinner, socketpair, martin.panter
2016-02-10 22:11:24vstinnersetmessageid: <1455142284.42.0.227700106446.issue26318@psf.upfronthosting.co.za>
2016-02-10 22:11:24vstinnerlinkissue26318 messages
2016-02-10 22:11:24vstinnercreate