CPython

CPython
Not to be confused with Cython.
CPython
Python logo.svg
Developer(s) Python core developers and the Python community
Stable release 3.2 / February 20, 2011; 8 months ago (2011-02-20)
Written in C
Platform Cross-platform
Type Python Programming Language Interpreter
License Python Software Foundation License
Website Python.org

CPython is the default, most-widely used implementation of the Python programming language. It is written in C. In addition to CPython, there are two other production-quality Python implementations: Jython, written in Java, and IronPython, which is written for the Common Language Runtime. There are also several experimental implementations.[1]

CPython is a bytecode 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.

Contents

Supported platforms

Unix-like
Desktop OSes
Special and embedded
Mainframe and other

Previously supported platforms

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

  • DOS (unsupported since 2.0)
  • IRIX 4 (unsupported since 2.3)
  • Mac OS 9 (unsupported since 2.4)
  • MINIX (unsupported since 2.3)

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.

Concurrency issues

A significant drawback to using CPython on a multitasking computer is the presence of a Global Interpreter Lock on each CPython interpreter process, which effectively disables concurrent Python threads within one process.[1] 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. There is constant discussion whether to remove the GIL from CPython.[2]

Notes

  1. ^ Martelli, Alex (2006). Python in a Nutshell (2nd edition ed.). O'Reilly. pp. 5–7. ISBN 978-0-596-10046-9. 

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • CPython — Тип интерпретатор языка программирования Python Разработчик …   Википедия

  • CPython — oder cPython ist der in der Programmiersprache C geschriebene Interpreter der Programmiersprache Python. Er wird auch oft nur Python genannt. CPython ist der standardmäßig installierte und am häufigsten benutzte Python Interpreter. Er wird als… …   Deutsch Wikipedia

  • CPython — Système d exploitation Multiplate forme CPython est l implémentation de référence du langage …   Wikipédia en Français

  • Python (programming language) — infobox programming language name = Python paradigm = multi paradigm: object oriented, imperative, functional year = 1991 designer = Guido van Rossum developer = Python Software Foundation latest release version = 2.6 latest release date =… …   Wikipedia

  • Python — У этого термина существуют и другие значения, см. Python (значения). Python Класс языка: му …   Википедия

  • Cython — Paradigmen: multiparadigmatisch Erscheinungsjahr: 2007 Entwickler: Robert Bradshaw, Stefan Behnel, et al. Aktuelle Version: 0.15.1  (19. September 2011) …   Deutsch Wikipedia

  • Пайтон — Python Класс языка: функциональный, объектно ориентированный, императивный, аспектно ориентированный Тип исполнения: интерпретация байт кода, компиляция в MSIL, компиляция в байт код Java Появился в: 1990 г …   Википедия

  • PyPy — Тип Интерпретатор и компилятор Python Написана на Python Операционная система Кроссплатформенный Последняя версия 1.9 (8 июня 201 …   Википедия

  • Cython — Not to be confused with CPython. Developer(s) Robert Bradshaw, Stefan Behnel, et al. Initial release 28 July 2007 (2007 07 28) …   Wikipedia

  • Python (Programmiersprache) — Python Basisdaten Paradigmen: multiparadigmatisch Erscheinungsjahr: 1991 …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”