Christian Heimes added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to