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.0020989408
Marked as misclassified No
Message-id <1258570716.97.0.757460234956.issue7348@psf.upfronthosting.co.za>
In-reply-to
Content
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'
  >>>
History
Date User Action Args
2009-11-18 18:58:37exarkunsetrecipients: + exarkun
2009-11-18 18:58:36exarkunsetmessageid: <1258570716.97.0.757460234956.issue7348@psf.upfronthosting.co.za>
2009-11-18 18:58:35exarkunlinkissue7348 messages
2009-11-18 18:58:35exarkuncreate