Replies: 2 comments 2 replies
-
Could you clarify your question with the command you're running and what you expect to happen? |
Beta Was this translation helpful? Give feedback.
0 replies
-
So sorry, I must have had a brainfart when posting earlier, leaving out the rest of the issue I want to pipe into the program:
plus some output on the terminal like Running it directly instead, without a pipeline, makes the program wait for input, then after typing and hitting ctrl_d the program continues on as expected. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A simple program like this
results in the app starting for a split second, then crashing saying that in
_parser.py:81
a ParseError is raised because we have reached the end of file.The documentation doesn't seem to mention anything regarding stdin or pipes or piping (at least not that I could seem to find with the search function), and here in the forums I have seen a few threads were it's detailed that textual reads from stdin during its lifetime, so using stdin while the app runs is a problem.
But using the
readlines
orread
method on eithersys.stdin
orsys.__stdin__
or theirbuffer
attribute always seems to somehow close stdin for textual, even thoughsys.stdin.readable()
remainsTrue
.Any help here is appreciated. Is this documented anywhere?
Beta Was this translation helpful? Give feedback.
All reactions