[Python-3000] Change in sys.stdin.name
Eric Smith
eric+python-dev at trueblade.com
Wed Aug 15 23:34:26 CEST 2007
I mentioned this in another message, but I thought I'd mention it here.
I see this change in the behavior of sys.stdin.name, between 2.3.3 and
3.0x (checked out a few minutes ago).
$ python
Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdin.name
'<stdin>'
$ ./python
Python 3.0x (py3k:57077M, Aug 15 2007, 17:27:26)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdin.name
0
I see similar behavior with sys.stdout and sys.stderr.
Is this deliberate? I can file a bug report if need be, just let me know.
Eric.
More information about the Python-3000
mailing list