[Python-Dev] Next version of PEP278 - universal newline support - available

Jack Jansen Jack.Jansen@oratrix.com
2002年3月14日 23:12:09 +0100


On donderdag, maart 14, 2002, at 01:16 , Fredrik Lundh wrote:
> someone wrote:
>>> jack wrote:
>>> - open(filename, 'U') is now the way to open files for universal
>>> newline reading because 't' may have a use on Windows;
>>>> "U" as in Ugly?
>> but except for the mode parameter, the "newlines" hack, [...]

What do you mean by the "newlines hack"? I consider the 
functionality vital, but I'm open for a different way to get the 
functionality if you think that the newlines attribute is a 
hack. That is: if you also explain why you think it's a hack:-)
--
- Jack Jansen <Jack.Jansen@oratrix.com> 
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- 
Emma Goldman -

AltStyle によって変換されたページ (->オリジナル) /