PEP 744: JIT Compilation

Would it be possible to have a a way to configure Python to disable the JIT by default, but have a command line options (ex: env var and/or CLI option) to enable it? The use case is to ship a single binary in Fedora with JIT disabled, to avoid any issues with the JIT by default, but let early adopters to play with it.

Example:

  • python3.13 runs Python without the JIT (disabled)
  • python3.13 -X jit runs Python with the JIT enabled

Fedora discussion: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/O3QSAOTIZKNSETB4B6NZK4CG5LGE5FRA/

10 Likes