Skip to content

sys command results in error #955

Description

@thevibingcat

when i enter the following code, this happens:

>>> v = sys.stdin.readline()
here is some text
>>> print(v)
here is some text
>>> v = sys.stdin.readline(13)
here is some text
[error text blah blah blah]```


what is supposed to happen is sys is supposed to save the first 13 characters (including spaces) of "here is some text".
if i do this in the actual IDLE, it does what is intended. but this does not happen in bpython. please fix this and any other commands that do not match up with the original python.
I am using Ubuntu 20.04.1, and the IDLE i mentioned is python 3.8 and bpython 0.18
Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions