Author christian.heimes
Recipients barry, christian.heimes, r.david.murray
Date 2012-09-25.16:55:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348592161.94.0.33295697932.issue16042@psf.upfronthosting.co.za>
In-reply-to
Content
size=-1 mimics the code of the io module. The C implementation of readline() maps all negative values to "unlimited" and values >= 0 as limit.

>>> sys.stdin.readline(None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object cannot be interpreted as an integer
History
Date User Action Args
2012-09-25 16:56:01christian.heimessetrecipients: + christian.heimes, barry, r.david.murray
2012-09-25 16:56:01christian.heimessetmessageid: <1348592161.94.0.33295697932.issue16042@psf.upfronthosting.co.za>
2012-09-25 16:55:40christian.heimeslinkissue16042 messages
2012-09-25 16:55:40christian.heimescreate