R. David Murray added the comment:
The 'name' attribute of TemporaryFile is not part of the API. It happens to
exist only because the underlying file object has a 'name' attribute. On posix
platforms the value is not really useful for anything. In other words, that
numpy code was buggy to start with, the bug was just hidden by the fact that in
python2 name happened to be a string ('<fdopen>'), and nobody looked at the
result. What numpy was doing with it produced a nonsense value, but I guess
nobody noticed.
Now, that said, I don't know why the value changed between Python2 and Python3,
and that might conceivably be a bug of some sort. I'm guessing it is a
consequence of the IO system rewrite and is not a bug per-se, but it might also
be that there are improvements that could be made here.
----------
nosy: +pitrou, r.david.murray
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17895>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com