I've got the unicode blues

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Mar 5 10:45:35 EST 2002


gerson.kurz at t-online.de (Gerson Kurz) writes:

> All tests were made using
> 
> PythonWin 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on
> win32 
> 
> from inside PythonWin.

I see. That the stream reader doesn't work will be fixed shortly;
the fix is

Index: codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/codecs.py,v
retrieving revision 1.23
diff -u -r1.23 codecs.py
--- codecs.py	19 Sep 2001 11:24:48 -0000	1.23
+++ codecs.py	5 Mar 2002 15:42:57 -0000
@@ -252,7 +252,7 @@
         return self.decode(line, self.errors)[0]
 
 
-    def readlines(self, sizehint=0):
+    def readlines(self, sizehint=None):
 
         """ Read all lines available on the input stream
             and return them as list of lines.

Regards,
Martin



More information about the Python-list mailing list