CPython

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

Lua error in package.lua at line 80: module 'strict' not found.

CPython
Python logo and wordmark.svg
Developer(s) Python core developers and the Python community, supported by the Python Software Foundation
Stable release 3.5.0 /
13 September 2015 (2015-09-13)
2.7.10 /
23 May 2015 (2015-05-23)
Written in C
Platform 42 platforms; see § Supported platforms
Type Python Programming Language Interpreter
License Python Software Foundation License
Website www.python.org

CPython is the default, most widely used implementation of the Python programming language. It is written in C. CPython is a source code interpreter. It has a foreign function interface with several languages including C, in which one must explicitly write bindings in a language other than Python.

Alternatives

CPython is one of several "production-quality" Python implementations including: Jython, written in Java for the Java virtual machine (JVM), PyPy, written in RPython and translated into C, and IronPython, which is written in C# for the Common Language Infrastructure. There are also several experimental implementations.[1]

Concurrency issues

A significant limitation of CPython is the use of a global interpreter lock (GIL) on each CPython interpreter process, which effectively disables concurrent Python threads within one process.[2] Concurrency can only be achieved with separate CPython interpreter processes managed by a multitasking operating system. This complicates communication between concurrent Python processes, though the multiprocessing module mitigates this somewhat. Much discussion took place on whether to remove the GIL from CPython. A set of "free threading" patches to CPython was submitted by Greg Stein, which effectively replaced GIL with fine-grained locking. However the patches were rejected due to the execution overhead they introduced into single-process code.[3]

Supported platforms

Supported platforms include:[4]

<templatestyles src="Div col/styles.css"/>

Previously supported platforms

PEP 11[6] lists platforms which are not supported in CPython by Python Software Foundation. These platforms can still be supported by external ports. See below.

External ports

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.

Version history

Version Release date Supported until
Old version, no longer supported: 2.2 2001-12-21[12] 2003-05-30[13]
Old version, no longer supported: 2.3 2003-07-29[14] 2008-03-11[15]
Old version, no longer supported: 2.4 2004-11-30[16] 2008-12-19[17]
Old version, no longer supported: 2.5 2006-09-19[18] 2011-05-26[19]
Old version, no longer supported: 2.6 2008-10-01[20] 2013-10-29[21]
Older version, yet still supported: 2.7 2010-07-03[22] 2020[23]
Old version, no longer supported: 3.0 2008-12-03[24] 2009-06-27[25]
Old version, no longer supported: 3.1 2009-06-27[26] 2014-06[27]
Old version, no longer supported: 3.2 2011-02-20[28] 2016-02[29]
Older version, yet still supported: 3.3 2012-09-29[30] 2017-09[31]
Older version, yet still supported: 3.4 2014-03-17[32] 2019-03[citation needed]
Current stable version: 3.5 2015-09-13[33] 2020-09[citation needed]
Future release: 3.6 Late 2016[34]
Legend:
Old version
Older version, still supported
Latest version
Latest preview version
Future release

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. PEP 11
  7. AmigaPython
  8. iSeriesPython
  9. PythonD
  10. Stackless Python for PSP
  11. Python Windows CE port
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. Lua error in package.lua at line 80: module 'strict' not found.
  24. Lua error in package.lua at line 80: module 'strict' not found.
  25. Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. Lua error in package.lua at line 80: module 'strict' not found.
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. Lua error in package.lua at line 80: module 'strict' not found.
  33. Lua error in package.lua at line 80: module 'strict' not found.
  34. Lua error in package.lua at line 80: module 'strict' not found.