universal newlines and utf-16

Antoine Pitrou solipsis at pitrou.net
Sun Apr 11 20:35:51 EDT 2010


Le Sun, 11 Apr 2010 16:16:45 +0100, Baz Walter a écrit :
> On 11/04/10 15:37, Stefan Behnel wrote:
>> The codecs module does not support universal newline parsing (see the
>> docs). You need to use the new io module instead.
> 
> thanks.
> 
> i'd completely overlooked the io module - i thought it was only in
> python 2.7/3.x.

To be precise, the 2.6 version is a slow one, written in pure Python (and 
it might be a bit less debugged too). But codecs.open() is slow, too.





More information about the Python-list mailing list