René's URL Explorer Experiment


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

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

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

Description: 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...

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/extrabacon/python-shell/pull/21

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:27638c68-a0db-f12f-af9c-27c2e2bb8511
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF0C:14FB0B:440EA59:5858F91:6974F14C
html-safe-nonce95d5ad5eb3d016cec947c637c3037952db626096b50f4b01fbd94a64ad0e43af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjBDOjE0RkIwQjo0NDBFQTU5OjU4NThGOTE6Njk3NEYxNEMiLCJ2aXNpdG9yX2lkIjoiMjY5MjAwODcxMzE4MTc4NjQ0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace20fe92a3ee6b4b0613b964150e980a28d3ba3fe909e590ba0c88eadf505e565
hovercard-subject-tagpull_request:50759444
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/extrabacon/python-shell/21/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/37470374dbf2567c67517a243de02af0475968ef4c0438c4587ca3e65e2bfb76/extrabacon/python-shell/pull/21
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/37470374dbf2567c67517a243de02af0475968ef4c0438c4587ca3e65e2bfb76/extrabacon/python-shell/pull/21
og:image:altSpent 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...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBirch-san
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/extrabacon/python-shell git https://github.com/extrabacon/python-shell.git
octolytics-dimension-user_id1558613
octolytics-dimension-user_loginextrabacon
octolytics-dimension-repository_id17671651
octolytics-dimension-repository_nwoextrabacon/python-shell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17671651
octolytics-dimension-repository_network_root_nwoextrabacon/python-shell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fextrabacon%2Fpython-shell%2Fpull%2F21
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fextrabacon%2Fpython-shell%2Fpull%2F21
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=extrabacon%2Fpython-shell
Reloadhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21
Reloadhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21
Reloadhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21
extrabacon https://patch-diff.githubusercontent.com/extrabacon
python-shellhttps://patch-diff.githubusercontent.com/extrabacon/python-shell
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fextrabacon%2Fpython-shell
Fork 221 https://patch-diff.githubusercontent.com/login?return_to=%2Fextrabacon%2Fpython-shell
Star 2.2k https://patch-diff.githubusercontent.com/login?return_to=%2Fextrabacon%2Fpython-shell
Code https://patch-diff.githubusercontent.com/extrabacon/python-shell
Issues 55 https://patch-diff.githubusercontent.com/extrabacon/python-shell/issues
Pull requests 5 https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulls
Actions https://patch-diff.githubusercontent.com/extrabacon/python-shell/actions
Projects 0 https://patch-diff.githubusercontent.com/extrabacon/python-shell/projects
Wiki https://patch-diff.githubusercontent.com/extrabacon/python-shell/wiki
Security 0 https://patch-diff.githubusercontent.com/extrabacon/python-shell/security
Insights https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulse
Code https://patch-diff.githubusercontent.com/extrabacon/python-shell
Issues https://patch-diff.githubusercontent.com/extrabacon/python-shell/issues
Pull requests https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulls
Actions https://patch-diff.githubusercontent.com/extrabacon/python-shell/actions
Projects https://patch-diff.githubusercontent.com/extrabacon/python-shell/projects
Wiki https://patch-diff.githubusercontent.com/extrabacon/python-shell/wiki
Security https://patch-diff.githubusercontent.com/extrabacon/python-shell/security
Insights https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fextrabacon%2Fpython-shell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fextrabacon%2Fpython-shell%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21#issue-comment-box
Birch-sanhttps://patch-diff.githubusercontent.com/Birch-san
extrabacon:masterhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/tree/master
Birch-san:multi-messagehttps://patch-diff.githubusercontent.com/Birch-san/python-shell/tree/multi-message
Unit test to demonstrate how to handle a multi-message conversation with child process https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21#top
Birch-sanhttps://patch-diff.githubusercontent.com/Birch-san
extrabacon:masterhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/tree/master
Birch-san:multi-messagehttps://patch-diff.githubusercontent.com/Birch-san/python-shell/tree/multi-message
Conversation 0 https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21
Commits 16 https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits
Checks 0 https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/checks
Files changed https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/files
Please reload this pagehttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/Birch-san
Birch-sanhttps://patch-diff.githubusercontent.com/Birch-san
Nov 15, 2015https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21#issue-117025613
#18https://github.com/extrabacon/python-shell/issues/18
StackOverflow answer about flushing Python outputhttp://stackoverflow.com/a/18849329
Please reload this pagehttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21
Birch-sanhttps://patch-diff.githubusercontent.com/Birch-san
November 15, 2015 17:48https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21#commits-pushed-24303d7
https://patch-diff.githubusercontent.com/Birch-san
document test depshttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/24303d7000d2b2b0b135db6c2fb689ad3b670fdc
24303d7https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/24303d7000d2b2b0b135db6c2fb689ad3b670fdc
https://patch-diff.githubusercontent.com/Birch-san
Revert "document test deps"https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/d220019c5ad32ff9f385bd3289d9381f94d9b047
d220019https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/d220019c5ad32ff9f385bd3289d9381f94d9b047
24303d7https://github.com/Birch-san/python-shell/commit/24303d7000d2b2b0b135db6c2fb689ad3b670fdc
https://patch-diff.githubusercontent.com/Birch-san
Make conceptual humorous conversationhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/cf409911c42335074017431315680fefcbc59701
cf40991https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/cf409911c42335074017431315680fefcbc59701
https://patch-diff.githubusercontent.com/Birch-san
Group unit tests into contextshttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/32e445aa3f51d667e01dae95a6bfaf31b9f94462
32e445ahttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/32e445aa3f51d667e01dae95a6bfaf31b9f94462
https://patch-diff.githubusercontent.com/Birch-san
fix JSON syntax in conversation.py, modularize further, handle more t…https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/d0937debcedd436431f3bba3761f996ee7ba5642
d0937dehttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/d0937debcedd436431f3bba3761f996ee7ba5642
https://patch-diff.githubusercontent.com/Birch-san
start writing conversation testhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/1aab1afea3cfc6c168033746bbe301e40ccaf23e
1aab1afhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/1aab1afea3cfc6c168033746bbe301e40ccaf23e
https://patch-diff.githubusercontent.com/Birch-san
add lodash to help with unit test assertionshttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/90334f84f2c014393d57b67e10c702dc3e73f911
90334f8https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/90334f84f2c014393d57b67e10c702dc3e73f911
https://patch-diff.githubusercontent.com/Birch-san
Revert "add lodash to help with unit test assertions"https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/36f85983c6d730d551fadb82b25b713d690b592a
36f8598https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/36f85983c6d730d551fadb82b25b713d690b592a
90334f8https://github.com/Birch-san/python-shell/commit/90334f84f2c014393d57b67e10c702dc3e73f911
https://patch-diff.githubusercontent.com/Birch-san
Not sure why can't multi-messagehttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/1d4f266cc83a8aa784d5cd108a65a3c32fbb4394
1d4f266https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/1d4f266cc83a8aa784d5cd108a65a3c32fbb4394
https://patch-diff.githubusercontent.com/Birch-san
Add various flushing, yielding. didn't help.https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/78a031c91ca26b79085d99d5c4a21bac9a83a3e2
78a031chttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/78a031c91ca26b79085d99d5c4a21bac9a83a3e2
https://patch-diff.githubusercontent.com/Birch-san
things continued to not helphttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/feaf8a9f3f36cdae5857358ab0b3c4d74b6f305e
feaf8a9https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/feaf8a9f3f36cdae5857358ab0b3c4d74b6f305e
https://patch-diff.githubusercontent.com/Birch-san
finally flushinghttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/0464d7c5a30bb3b2cf3cc1875b5e7c275ddf7779
0464d7chttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/0464d7c5a30bb3b2cf3cc1875b5e7c275ddf7779
https://patch-diff.githubusercontent.com/Birch-san
put back to normalhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/9f65b404cd3328f1a07a6025c4949598980a17a1
9f65b40https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/9f65b404cd3328f1a07a6025c4949598980a17a1
https://patch-diff.githubusercontent.com/Birch-san
remove unused, fix double-end of testhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/b22ac2b13def7708d8c0ae78bd1676082afe6c33
b22ac2bhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/b22ac2b13def7708d8c0ae78bd1676082afe6c33
https://patch-diff.githubusercontent.com/Birch-san
enable other tests againhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/a49473f4867fc10d7c6392cbbc58d2829c51e49d
a49473fhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/a49473f4867fc10d7c6392cbbc58d2829c51e49d
https://patch-diff.githubusercontent.com/Birch-san
remove tracinghttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/9d8641dc1e55e808ba82d029f9920413ab63206f
9d8641dhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21/commits/9d8641dc1e55e808ba82d029f9920413ab63206f
https://patch-diff.githubusercontent.com/extrabacon
extrabaconhttps://patch-diff.githubusercontent.com/extrabacon
Mar 16, 2016 https://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21#ref-issue-141115269
Best way to use IPC between node and python? #30 https://patch-diff.githubusercontent.com/extrabacon/python-shell/issues/30
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fextrabacon%2Fpython-shell%2Fpull%2F21
Please reload this pagehttps://patch-diff.githubusercontent.com/extrabacon/python-shell/pull/21
https://patch-diff.githubusercontent.com/Birch-san
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.