Is the default Python interpreter which comes with Ubuntu distribution CPython or not?

If it is not CPython, does it have GIL or not?


Yes, the default Python interpreter implementation on Ubuntu, just like everywhere else, is CPython. If it were anything non-standard (e.g. PyPy, IronPython, Jython, Cython or whatever else), it would be named that. Plain "Python" is always CPython.

Regarding the GIL (Global Interpreter Lock), yes, CPython and therefore Ubuntu's standard Python interpreter is subject to that feature/limitation. That means your Python scripts will usually run in a single thread (unless you use the multiprocessing library or some other special stuff).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.