Terry J. Reedy added the comment:

Given that the changed behavior is documented and pretty obviously intentional, 
it is not a bug. The proposal would have to be that we 'enhance' 3.4 *or later* 
by reverting back to the 2.x -- and possibly break 3.0 to 3.3 code. We are not 
going to do that without extremely good reason.

For a nameless file, using the integer fd as a 'name' seems more truthful than 
'<fdopen>'. I believe the latter can be a actual filename on *nix. On Windows, 
while Explorer rejects it, there may be ways to bypass the check. The integer 
fd is also more useful than None and 'isintance(x.name, int)' is as easy to 
check as 'x.name is None'.

----------
nosy: +terry.reedy
status: open -> closed
type: behavior -> enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17895>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to