STINNER Victor added the comment: 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)? ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26318> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com