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)
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: