3 ms·
The shebang issue should probably lean on existing Python conventions: from future import nogil It would hot swap interpreters at that point.
by VagabundoP 3y ago
The shebang issue should probably lean on existing Python conventions:
from future import nogil
It would hot swap interpreters at that point.
- ikari_pl 3y agoit could be a nightmare to implement if it's not the first module, and then the first import, to execute
- pletnes 3y agoNot sure about anything nogil related, but future imports already have to be the first executable statement in a file.
- hsfzxjy 3y ago`from __future__ import ` is a specialized statement to indicate flags rather than a runtime statement. https://docs.python.org/3/reference/simple_stmts.html#future-statements https://docs.python.org/3/reference/simple_stmts.html#future...
- kzrdude 3y ago"""A future statement is a directive to the compiler that a particular module should be compiled using syntax or semantics that will be available in a specified future release of Python where the feature becomes standard.""" future statements are module specific and GIL/no-GIL doesn't fit easily into that model.
- VagabundoP 3y agoIn the back of my mind I imagined it being used with this: https://peps.python.org/pep-0397/ https://peps.python.org/pep-0397/ But for all platforms. I should have put that into the comment.