[Python-Dev] [Python-checkins] r45850 - in python/trunk: Doc/lib/libfuncs.tex Lib/test/test_subprocess.py Misc/NEWS Objects/fileobject.c Python/bltinmodule.c

Aahz aahz at pythoncraft.com
Tue May 2 16:34:28 CEST 2006


On Tue, May 02, 2006, Tim Peters wrote:
>
>> Author: neal.norwitz
>> Date: Tue May  2 06:43:14 2006
>> New Revision: 45850
>>
>> Modified:
>>    python/trunk/Lib/test/test_subprocess.py
>>    python/trunk/Objects/fileobject.c
>>    python/trunk/Python/bltinmodule.c
>> Log:
>> SF #1479181: split open() and file() from being aliases for each other.
> 
> Umm ... why?  I suppose I wouldn't care, except it left
> test_subprocess failing on all the Windows buildbots, and I don't feel
> like figuring out why.  To a first approximation,
> test_universal_newlines_communicate() now takes the
> 
>                 # Interpreter without universal newline support
> 
> branch on Windows, but shouldn't.

That's a bug in the Windows implementation or in the docs.
test_subprocess failed because open() was no longer an alias for file();
I originally planned to just s/open/file/ but when I read the docs, the
docs said that newlines attribute was supposed to go on file objects, not
the file type.  Neal's decision to use my original idea is probably fine,
but I'm not sure.

http://docs.python.org/dev/lib/bltin-file-objects.html

I'll answer your other post later when I have more time, but you might
check

http://mail.python.org/pipermail/python-dev/2005-December/thread.html#59073

for the basic history.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours."  --Richard Bach


More information about the Python-Dev mailing list