FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Unit test to demonstrate how to handle a multi-message conversation with child process by Birch-san · Pull Request #21 · extrabacon/python-shell · GitHub

Repository navigation

Unit test to demonstrate how to handle a multi-message conversation with child process - #21

Open
Birch-san wants to merge 16 commits into
extrabacon:masterfrom
Birch-san:multi-message
Open

Birch-san wants to merge 16 commits into
extrabacon:masterfrom
Birch-san:multi-message

Conversation

Copy link
Copy Markdown

Spent a very long time wondering why I had to "end()" stdin to send a message to Python.

Thanks to issue #18 and this StackOverflow answer about flushing Python output, I was able to work it out.

I've now made a JSON knock-knock conversation that (several times) "sends a message, then waits for a reply". You can use this test if you feel like it.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL