https://github.com/virxec/python-no-run
Minimal reproducable example for a very stange bug that happens in Windows when interfacing with Python from Rust via stdin
https://github.com/virxec/python-no-run
python rust stack-overflow-posts stdin subprocess
Last synced: about 2 months ago
JSON representation
Minimal reproducable example for a very stange bug that happens in Windows when interfacing with Python from Rust via stdin
- Host: GitHub
- URL: https://github.com/virxec/python-no-run
- Owner: VirxEC
- Created: 2022-10-29T15:45:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-29T15:51:36.000Z (over 3 years ago)
- Last Synced: 2025-03-11T11:41:50.516Z (about 1 year ago)
- Topics: python, rust, stack-overflow-posts, stdin, subprocess
- Language: Rust
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-no-run
Minimal reproducable example for a very stange bug that happens in Windows when interfacing with Python from Rust via stdin
## In the root folder
- Run `cargo r` and see that nothing happens
- In `python/main.py` comment out line 20 and uncomment line 22
- Run `cargo r` and see that "Hello world" gets spammed when the stop command is issued and never stops
## In the `python` folder
- Run `python -c "from main import start; start()"` to start the process
- Enter `start | ` exactly and see "Hello world" gets spammed
- Enter `stop | ` exactly and see "Hello world" stop being spammed, processes all exit successfully