- Not to be confused with Cython.
|This article relies on references to primary sources. (November 2010)|
|Developer(s)||Python core developers and the Python community, supported by the Python Software Foundation|
|Stable release||3.3.3 /
12 November 2013
10 November 2013
|Type||Python Programming Language Interpreter|
|License||Python Software Foundation License|
CPython is the default, most-widely used implementation of the Python programming language. It is written in C. In addition to CPython, there are other "production-quality" Python implementations: Jython, written in Java, PyPy, and IronPython, which is written for the Common Language Infrastructure. There are also several experimental implementations.
Previously supported platforms
- AtheOS (unsupported since 2.6)
- BeOS (unsupported since 2.6)
- DOS (unsupported since 2.0)
- IRIX 4 (unsupported since 2.3)
- Mac OS 9 (unsupported since 2.4)
- MINIX (unsupported since 2.3)
- Windows 3.x (unsupported since 2.0)
- Windows 9x (unsupported since 2.6)
- Windows NT4 (unsupported since 2.6)
These are ports not integrated to Python Software Foundation's official version of CPython, with links to its main development site. Ports often include additional modules for platform-specific functionalities, like graphics and sound API for PSP and SMS and camera API for S60.
- Amiga: AmigaPython
- AS/400: iSeriesPython
- DOS using DJGPP: PythonD
- PlayStation Portable: Stackless Python for PSP
- Symbian OS: Python for S60
- Windows CE/Pocket PC: Python Windows CE port
A significant drawback to using CPython is the presence of a Global Interpreter Lock on each CPython interpreter process, which effectively disables concurrent Python threads within one process. To be truly concurrent in multitasking environment, separate CPython interpreter processes have to be run, which makes establishing communication between them a difficult task, though the multiprocessing module mitigates this somewhat. A lot of discussion took place whether to remove the GIL from CPython, even after the rejection of the “free threading” patches on CPython from Greg Stein which effectively replaced GIL with fine-grained locking. The rejection was mainly based on the overhead the patch inflicted to execution of single process code.
|Version||Release date||Supported until|
|Old version, no longer supported: 2.2||2001-12-21||2003-05-30|
|Old version, no longer supported: 2.3||2003-07-29||2008-03-11|
|Old version, no longer supported: 2.4||2004-11-30||2008-12-19|
|Old version, no longer supported: 2.5||2006-09-19||2011-05-26|
|Old version, no longer supported: 2.6||2008-10-01||2013-10-29|
|Older version, yet still supported: 2.7||2010-07-03||2015 (at least)|
|Old version, no longer supported: 3.0||2008-12-03||2009-02-13|
|Older version, yet still supported: 3.1||2009-06-27||2014-06|
|Older version, yet still supported: 3.2||2011-02-20||2016-02|
|Current stable version: 3.3||2012-09-29||2017-09|
|Future release: 3.4||2014-02-23|
- Martelli, Alex (2006). Python in a Nutshell (2nd edition ed.). O'Reilly. pp. 5–7. ISBN 978-0-596-10046-9.
- "PythonImplementations". Retrieved 19 July 2012.
- Python/C API Reference Manual: Thread State and the Global Interpreter Lock
- "Library and Extension FAQ". Python v3.3.0 documentation. Python Software Foundation. "Can't we get rid of the Global Interpreter Lock?". Archived from the original on March 4, 2013.