[PYTHONMAC-SIG] UNIX files
Guido van Rossum
guido@CNRI.Reston.Va.US
Wed, 09 Oct 1996 14:08:49 -0400
> Hmm, Jack, what would be required to make Python interpret Unix line
> endings, or at least recognize them and display a warning?
I'm not Jack, but I think there's only one or two places where modules
are opened. I wonder if we could open the file in binary mode and if
we detect a CR in the first 512 bytes, reopen it in text mode... The
same hack should work for Windows! On Unix, don't do this at all.
--Guido van Rossum (home page: http://www.python.org/~guido/)
=================
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
=================