Title: sys command results in error · Issue #955 · bpython/bpython · GitHub
Open Graph Title: sys command results in error · Issue #955 · bpython/bpython
X Title: sys command results in error · Issue #955 · bpython/bpython
Description: 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 sy...
Open Graph Description: 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 b...
X Description: 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 t...
Opengraph URL: https://github.com/bpython/bpython/issues/955
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sys command results in error","articleBody":"when i enter the following code, this happens:\r\n```\u003e\u003e\u003e import sys\r\n\u003e\u003e\u003e v = sys.stdin.readline()\r\nhere is some text\r\n\u003e\u003e\u003e print(v)\r\nhere is some text\r\n\u003e\u003e\u003e v = sys.stdin.readline(13)\r\nhere is some text\r\n[error text blah blah blah]```\r\n\r\n\r\nwhat is supposed to happen is sys is supposed to save the first 13 characters (including spaces) of \"here is some text\".\r\nif 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.\r\nI am using Ubuntu 20.04.1, and the IDLE i mentioned is python 3.8 and bpython 0.18\r\nThank you.","author":{"url":"https://github.com/thevibingcat","@type":"Person","name":"thevibingcat"},"datePublished":"2022-03-29T14:56:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/955/bpython/issues/955"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0c0467b6-b285-70bf-6a5d-74625c0561cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95C0:17C6E:211EA7:2E4F11:6968C328 |
| html-safe-nonce | 5163e6d0d176f596bfe010952604bf3956f738ecbea4d410b6069e9b4cf811a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUMwOjE3QzZFOjIxMUVBNzoyRTRGMTE6Njk2OEMzMjgiLCJ2aXNpdG9yX2lkIjoiNTIzMTYwNzQ4MjE0Mjk5OTMzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 150b16f71dbb758108f1566aaf071c444047b850dc43b5f62bd4bb91db3090ab |
| hovercard-subject-tag | issue:1185001309 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bpython/bpython/955/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f7e332208e0372e6d20d4bcd4ac9b4cfe8493cb1059ce07d309c53cd54e25c4/bpython/bpython/issues/955 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f7e332208e0372e6d20d4bcd4ac9b4cfe8493cb1059ce07d309c53cd54e25c4/bpython/bpython/issues/955 |
| og:image:alt | 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 b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thevibingcat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2ad1b0ea56d6705db45f5db2c83c79d467c52ec2bb1a9b2ec250b964fcb7fb71 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3e85bdc155d44512be88257f76953bc86fe88a6b |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width