Message95438
cStringIO and file both accept -1 to readline to mean the same thing as
not passing any argument at all. StringIO, on the other hand, gets
totally confused:
>>> from StringIO import StringIO
>>> StringIO('a\nb\nfoo').readline(-1)
'a\nb\nfo'
>>> |
|
Date |
User |
Action |
Args |
2009-11-18 18:58:37 | exarkun | set | recipients:
+ exarkun |
2009-11-18 18:58:36 | exarkun | set | messageid: <1258570716.97.0.757460234956.issue7348@psf.upfronthosting.co.za> |
2009-11-18 18:58:35 | exarkun | link | issue7348 messages |
2009-11-18 18:58:35 | exarkun | create | |
|