Re: [Python-3000] Change in sys.stdin.name

2007-08-15 Thread Christian Heimes
Eric Smith wrote: > Is this deliberate? I can file a bug report if need be, just let me know. I'm sure it is a bug. The site.installnewio() function doesn't set the names. The attached patch fixes the issue and adds an unit test, too. Christian Index: Lib/site.py

Re: [Python-3000] Change in sys.stdin.name

2007-08-15 Thread Guido van Rossum
It sort of is -- the new I/O library uses the file descriptor if no filename is given. There were no unit tests that verified the old behavior, and I think it was of pretty marginal usefulness. Code inspecting f.name can tell the difference by looking at its type -- if it is an int, it's a file des

[Python-3000] Change in sys.stdin.name

2007-08-15 Thread Eric Smith
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