typed_python
typed_python copied to clipboard
Print statements from compiled code and interpreter can interleave.
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...