This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients exarkun
Date 2009-11-18.18:58:35
SpamBayes Score 0.00209894
Marked as misclassified No
Message-id <>
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)
Date User Action Args
2009-11-18 18:58:37exarkunsetrecipients: + exarkun
2009-11-18 18:58:36exarkunsetmessageid: <>
2009-11-18 18:58:35exarkunlinkissue7348 messages
2009-11-18 18:58:35exarkuncreate