-
-
Notifications
You must be signed in to change notification settings - Fork 252
FakeStdin.readlines() is broken #52
Copy link
Copy link
Closed
Labels
Description
During some experiments with sys.stdin (which is in fact FakeStdin in bpython), I have found two bugs:
iterating is not possible / not supported
FakeStdin.readlines requires two arguments, although sys.stdin.readlines works without any arguments in a normal python shell
Here is a piece of code to illustrate the second bug I have found:
>>> sys.stdin.readlines()
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: readlines() takes exactly 2 arguments (1 given)
- Bitbucket: https://bitbucket.org/bobf/bpython/issue/52
- Originally Reported By: Simon Liedtke
- Originally Created At: 2009-07-31T22:58:11.866
Reactions are currently unavailable