typed_python icon indicating copy to clipboard operation
typed_python copied to clipboard

Print statements from compiled code and interpreter can interleave.

Open braxtonmckee opened this issue 2 years ago • 0 comments

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

braxtonmckee avatar Feb 02 '23 23:02 braxtonmckee