Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print statements from compiled code and interpreter can interleave. #430

Open
braxtonmckee opened this issue Feb 2, 2023 · 0 comments
Open
Labels

Comments

@braxtonmckee
Copy link
Collaborator

When you 'print' in the interpeter you write into a buffered stdout model in sys.stdout. When you print in compiled code we write directly to the operating system. If you mix compiled and interpreted code your print statements can get out of order, which is hard to make sense of.

Not clear how to solve this, since we don't want compiled print to have to lock the GIL to interact with sys.stdout...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant