Skip to content

FakeStdin.readlines() is broken #52

@ikanobori

Description

@ikanobori

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions