Python (programming language) explained
| Logo Size: | 150px |
| Paradigm: | Multi-paradigm object-oriented,[1] procedural (imperative), functional, structured, reflective
|
| Released: | [2] |
| Designer: | Guido van Rossum |
| Developer: | Python Software Foundation |
| Typing: | Duck, dynamic, strong;[3] optional type annotations |
| Memory Management: | Garbage-collected |
| Implementations: | CPython, PyPy, MicroPython, CircuitPython, IronPython, Jython, Stackless Python |
| Operating System: | Cross-platform |
| License: | Python Software Foundation License |
| File Ext: | .py, .pyc,[4] .pyd,[5] .pyi,[6] .pyw,[7] .pyz[8] |
| Dialects: | Cython, RPython, Starlark[9] |
| Influenced By: | ABC, Ada,[10], APL,[11] C, C++, CLU, Dylan, Haskell, Icon, Lisp,, Perl,[12] Standard ML |
| Influenced: | Apache Groovy, Boo, Cobra, CoffeeScript,[13] D, F#, GDScript, Go, JavaScript,[14] [15] Julia,[16] Mojo, Nim, Ruby, Swift, V |
| Programming Language: | C --> |
| Wikibooks: | Python Programming |
Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically type-checked and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming.
Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language. Python 3.0, released in 2008, was a major revision and not completely backward-compatible with earlier versions. Beginning with Python 3.5,[17] capabilities and keywords for typing were added to the language, allowing optional static typing.[18], the Python Software Foundation supports Python 3.10, 3.11, 3.12, 3.13, and 3.14, following the project's annual release cycle and five-year support policy. Python 3.15 is currently in the alpha development phase, and the stable release is expected to come out in October 2026.[19] Earlier versions in the 3.x series have reached end-of-life and no longer receive security updates.
Python has gained widespread use in the machine learning community.[20] [21] [22] [23] It is widely taught as an introductory programming language.[24] Since 2003, Python has consistently ranked in the top ten of the most popular programming languages in the TIOBE Programming Community Index, which ranks based on searches in 24 platforms.[25]
History
See main article: History of Python. Python was conceived in the late 1980s by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands. It was designed as a successor to the ABC programming language, which was inspired by SETL, capable of exception handling and interfacing with the Amoeba operating system. Python implementation began in December 1989. Van Rossum first released it in 1991 as Python 0.9.0. Van Rossum assumed sole responsibility for the project, as the lead developer, until 12 July 2018, when he announced his "permanent vacation" from responsibilities as Python's "benevolent dictator for life" (BDFL); this title was bestowed on him by the Python community to reflect his long-term commitment as the project's chief decision-maker. (He has since come out of retirement and is self-titled "BDFL-emeritus".) In January 2019, active Python core developers elected a five-member Steering Council to lead the project.[26] [27]
The name Python derives from the British comedy series Monty Python's Flying Circus.[28] (See .)
Python 2.0 was released on 16 October 2000, featuring many new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 2.7's end-of-life was initially set for 2015, and then postponed to 2020 out of concern that a large body of existing code could not easily be forward-ported to Python 3.[29] [30] It no longer receives security patches or updates.[31] [32] While Python 2.7 and older versions are officially unsupported, a different unofficial Python implementation, PyPy, continues to support Python 2, i.e., "2.7.18+" (plus 3.11), with the plus signifying (at least some) "backported security updates".[33]
Python 3.0 was released on 3 December 2008, and was a major revision and not completely backward-compatible with earlier versions, with some new semantics and changed syntax. Python 2.7.18, released in 2020, was the last release of Python 2.[34] Several releases in the Python 3.x series have added new syntax to the language, and made a few (considered very minor) backward-incompatible changes.
, Python is the latest stable release. All older 3.x versions had a security update down to Python 3.9.24 then again with 3.9.25, the final version in 3.9 series. Python 3.10 is, since November 2025, the oldest supported branch.[35] Python 3.15 has an alpha released, and Android has an official downloadable executable available for Python 3.14. Releases receive two years of full support followed by three years of security support.
Design philosophy and features
Python is a multi-paradigm programming language. Object-oriented programming and structured programming are fully supported, and many of their features support functional programming and aspect-oriented programming – including metaprogramming and metaobjects. Many other paradigms are supported via extensions, including design by contract and logic programming. Python is often referred to as a
'glue language'[36] because it is purposely designed to be able to integrate components written in other languages.
Python uses dynamic typing and a combination of reference counting and a cycle-detecting garbage collector for memory management.[37] It uses dynamic name resolution (late binding), which binds method and variable names during program execution.
Python's design offers some support for functional programming in the "Lisp tradition". It has,, and functions; list comprehensions, dictionaries, sets, and generator expressions. The standard library has two modules (and) that implement functional tools borrowed from Haskell and Standard ML.
Python's core philosophy is summarized in the Zen of Python (PEP 20) written by Tim Peters, which includes aphorisms such as these:
- Explicit is better than implicit.
- Simple is better than complex.
- Readability counts.
- Special cases aren't special enough to break the rules.
- Although practicality beats purity, errors should never pass silently, unless explicitly silenced.
- There should be one-- and preferably only one --obvious way to do it.
However, Python has received criticism for violating these principles and adding unnecessary language bloat.[38] Responses to these criticisms note that the Zen of Python is a guideline rather than a rule.[39] The addition of some new features had been controversial: Guido van Rossum resigned as Benevolent Dictator for Life after conflict about adding the assignment expression operator in [40] [41]
Nevertheless, rather than building all functionality into its core, Python was designed to be highly extensible via modules. This compact modularity has made it particularly popular as a means of adding programmable interfaces to existing applications. Van Rossum's vision of a small core language with a large standard library and easily extensible interpreter stemmed from his frustrations with ABC, which represented the opposite approach.
Python claims to strive for a simpler, less-cluttered syntax and grammar, while giving developers a choice in their coding methodology. Python lacks do .. while loops, which Rossum considered harmful.[42] In contrast to Perl's motto "there is more than one way to do it", Python advocates an approach where "there should be one – and preferably only one – obvious way to do it". In practice, however, Python provides many ways to achieve a given goal. There are at least three ways to format a string literal, with no certainty as to which one a programmer should use.[43] Alex Martelli is a Fellow at the Python Software Foundation and Python book author; he wrote that "To describe something as 'clever' is not considered a compliment in the Python culture."
Python's developers typically prioritize readability over performance. For example, they reject patches to non-critical parts of the CPython reference implementation that would offer increases in speed that do not justify the cost of clarity and readability. Execution speed can be improved by moving speed-critical functions to extension modules written in languages such as C, or by using a just-in-time compiler like PyPy. Also, it is possible to transpile to other languages. However, this approach either fails to achieve the expected speed-up, since Python is a very dynamic language, or only a restricted subset of Python is compiled (with potential minor semantic changes).
Python is meant to be a fun language to use. This goal is reflected in the name – a tribute to the British comedy group Monty Python – and in playful approaches to some tutorials and reference materials. For instance, some code examples use the terms "spam" and "eggs" (in reference to a Monty Python sketch), rather than the typical terms "foo" and "bar".[44] [45]
A common neologism in the Python community is pythonic, which has a broad range of meanings related to program style: Pythonic code may use Python idioms well; be natural or show fluency in the language; or conform with Python's minimalist philosophy and emphasis on readability.[46]
Syntax and semantics
See main article: Python syntax and semantics. Python is meant to be an easily readable language. Its formatting is visually uncluttered and often uses English keywords where other languages use punctuation. Unlike many other languages, it does not use curly brackets to delimit blocks, and semicolons after statements are allowed but rarely used. It has fewer syntactic exceptions and special cases than C or Pascal.
Indentation
Python uses whitespace indentation, rather than curly brackets or keywords, to delimit blocks. An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block. Thus, the program's visual structure accurately represents its semantic structure.[47] This feature is sometimes termed the off-side rule. Some other languages use indentation this way; but in most, indentation has no semantic meaning. The recommended indent size is four spaces.[48]
Statements and control flow
Python's statements include the following:
- The assignment statement, using a single equals sign
=
- The
[[if-then-else|if]] statement, which conditionally executes a block of code, along with [[Conditional (computer programming)#If–then(–else)|else]] and elif (a contraction of [[Conditional (computer programming)#Else if|else if]])
- The
[[Foreach#Python|for]] statement, which iterates over an iterable object, capturing each element to a variable for use by the attached block; the variable is not deleted when the loop finishes
- The
[[While loop#Python|while]] statement, which executes a block of code as long as boolean condition is true
- The
[[Exception handling syntax#Python|try]] statement, which allows exceptions raised in its attached code block to be caught and handled by except clauses (or new syntax except* in Python 3.11 for exception groups);[49] the try statement also ensures that clean-up code in a finally block is always run regardless of how the block exits
- The
raise statement, used to raise a specified exception or re-raise a caught exception
- The
class statement, which executes a block of code and attaches its local namespace to a class, for use in object-oriented programming
- The
def statement, which defines a function or method
- The
[[dispose pattern#Language constructs|with]] statement, which encloses a code block within a context manager, allowing resource-acquisition-is-initialization (RAII)-like behavior and replacing a common try/finally idiom[50] Examples of a context include acquiring a lock before some code is run, and then releasing the lock; or opening and then closing a file
- The
[[break statement|break]] statement, which exits a loop
- The
continue statement, which skips the rest of the current iteration and continues with the next
- The
del statement, which removes a variable—deleting the reference from the name to the value, and producing an error if the variable is referred to before it is redefined
- The
pass statement, serving as a NOP (i.e., no operation), which is syntactically needed to create an empty code block
- The
[[assertion (programming)|assert]] statement, used in debugging to check for conditions that should apply
- The
yield statement, which returns a value from a generator function (and also an operator); used to implement coroutines
- The
return statement, used to return a value from a function
- The
[[include directive|import]] and from statements, used to import modules whose functions or variables can be used in the current program
- The
match and case statements, analogous to a switch statement construct, which compares an expression against one or more cases as a control-flow measure
The assignment statement (=) binds a name as a reference to a separate, dynamically allocated object. Variables may subsequently be rebound at any time to any object. In Python, a variable name is a generic reference holder without a fixed data type; however, it always refers to some object with a type. This is called dynamic typing—in contrast to statically-typed languages, where each variable may contain only a value of a certain type.
Python does not support tail call optimization or first-class continuations; according to Van Rossum, the language never will. However, better support for coroutine-like functionality is provided by extending Python's generators. Before 2.5, generators were lazy iterators; data was passed unidirectionally out of the generator. From Python 2.5 on, it is possible to pass data back into a generator function; and from version 3.3, data can be passed through multiple stack levels.
Expressions
Python's expressions include the following:
- The
+, -, and * operators for mathematical addition, subtraction, and multiplication are similar to other languages, but the behavior of division differs. There are two types of division in Python: floor division (or integer division) //, and floating-point division /.[51] Python uses the ** operator for exponentiation.
- Python uses the
+ operator for string concatenation. The language uses the * operator for duplicating a string a specified number of times.
- The
@ infix operator is intended to be used by libraries such as NumPy for matrix multiplication.[52] [53]
- The syntax
:=, called the "", was introduced in Python 3.8. This operator assigns values to variables as part of a larger expression.[54]
- In Python,
== compares two objects by value. Python's is operator may be used to compare object identities (i.e., comparison by reference), and comparisons may be chained—for example, .
- Python uses
and, or, and not as Boolean operators.
- Python has a type of expression called a list comprehension, and a more general expression called a generator expression.
- Anonymous functions are implemented using lambda expressions; however, there may be only one expression in each body.
- Conditional expressions are written as . (This is different in operand order from the
[[?:|c ? x : y]] operator common to many other languages.)
- Python makes a distinction between lists and tuples. Lists are written as, are mutable, and cannot be used as the keys of dictionaries (since dictionary keys must be immutable in Python). Tuples, written as, are immutable and thus can be used as the keys of dictionaries, provided that all of the tuple's elements are immutable. The
+ operator can be used to concatenate two tuples, which does not directly modify their contents, but produces a new tuple containing the elements of both. For example, given the variable t initially equal to, executing first evaluates, which yields ; this result is then assigned back to t—thereby effectively "modifying the contents" of t while conforming to the immutable nature of tuple objects. Parentheses are optional for tuples in unambiguous contexts.[55]
- Python features sequence unpacking where multiple expressions, each evaluating to something assignable (e.g., a variable or a writable property) are associated just as in forming tuple literal; as a whole, the results are then put on the left-hand side of the equal sign in an assignment statement. This statement expects an iterable object on the right-hand side of the equal sign to produce the same number of values as the writable expressions on the left-hand side; while iterating, the statement assigns each of the values produced on the right to the corresponding expression on the left.[56]
- Python has a "string format" operator
% that functions analogously to [[printf]] format strings in the C language—e.g. evaluates to "spam=blah eggs=2". In Python 2.6+ and 3+, this operator was supplemented by the format method of the str class, e.g., . Python 3.6 added "f-strings": .[57]
- Strings in Python can be concatenated by "adding" them (using the same operator as for adding integers and floats); e.g., returns
"spameggs". If strings contain numbers, they are concatenated as strings rather than as integers, e.g. returns "22".
- Python supports string literals in several ways:
- Delimited by single or double quotation marks; single and double quotation marks have equivalent functionality (unlike in Unix shells, Perl, and Perl-influenced languages). Both marks use the backslash (
\) as an escape character. String interpolation became available in Python 3.6 as "formatted string literals".[57]
- Triple-quoted, i.e., starting and ending with three single or double quotation marks; this may span multiple lines and function like here documents in shells, Perl, and Ruby.
- Raw string varieties, denoted by prefixing the string literal with
r. Escape sequences are not interpreted; hence raw strings are useful where literal backslashes are common, such as in regular expressions and Windows-style paths. (Compare "@-quoting" in C#.)
- Python has array index and array slicing expressions in lists, which are written as
a[key], or . Indexes are zero-based, and negative indexes are relative to the end. Slices take elements from the start index up to, but not including, the stop index. The (optional) third slice parameter, called step or stride, allows elements to be skipped or reversed. Slice indexes may be omitted—for example, returns a copy of the entire list. Each element of a slice is a shallow copy.
In Python, a distinction between expressions and statements is rigidly enforced, in contrast to languages such as Common Lisp, Scheme, or Ruby. This distinction leads to duplicating some functionality, for example:
- List comprehensions vs.
for-loops
- Conditional expressions vs.
if blocks
- The
eval vs. exec built-in functions (in Python 2, exec is a statement); the former function is for expressions, while the latter is for statements
A statement cannot be part of an expression; because of this restriction, expressions such as list and dict comprehensions (and lambda expressions) cannot contain statements. As a particular case, an assignment statement such as cannot be part of the conditional expression of a conditional statement.
Typing
Python uses duck typing, and it has typed objects but untyped variable names. Type constraints are not checked at definition time; rather, operations on an object may fail at usage time, indicating that the object is not of an appropriate type. Despite being dynamically typed, Python is strongly typed, forbidding operations that are poorly defined (e.g., adding a number and a string) rather than quietly attempting to interpret them.
Python allows programmers to define their own types using classes, most often for object-oriented programming. New instances of classes are constructed by calling the class, for example, or); the classes are instances of the metaclass type (which is an instance of itself), thereby allowing metaprogramming and reflection.
Before version 3.0, Python had two kinds of classes, both using the same syntax: old-style and new-style. Current Python versions support the semantics of only the new style.
Python supports optional type annotations.[58] [59] These annotations are not enforced by the language, but may be used by external tools such as mypy to catch errors. Python includes a module typing including several type names for type annotations.[60] [61] Also, mypy supports a Python compiler called mypyc, which leverages type annotations for optimization.[62]
Summary of Python 3's built-in types| Type | Mutability | Description | Syntax examples |
|---|
bool | immutable | Boolean value |
|
bytearray | mutable | Sequence of bytes |
|
bytes | immutable | Sequence of bytes |
|
complex | immutable | Complex number with real and imaginary parts |
|
dict | mutable | Associative array (or dictionary) of key and value pairs; can contain mixed types (keys and values); keys must be a hashable type |
|
types.EllipsisType | immutable | An ellipsis placeholder to be used as an index in NumPy arrays |
|
float | immutable | Double-precision floating-point number. The precision is machine-dependent, but in practice it is generally implemented as a 64-bit IEEE 754 number with 53 bits of precision.[63] | |
frozenset | immutable | Unordered set, contains no duplicates; can contain mixed types, if hashable | |
int | immutable | Integer of unlimited magnitude | |
list | mutable | List, can contain mixed types |
|
types.NoneType | immutable | An object representing the absence of a value, often called null in other languages | |
types.NotImplementedType | immutable | A placeholder that can be returned from overloaded operators to indicate unsupported operand types. | |
range | immutable | An immutable sequence of numbers, commonly used for iterating a specific number of times in for loops[64] |
|
set | mutable | Unordered set, contains no duplicates; can contain mixed types, if hashable |
|
str | immutable | A character string: sequence of Unicode codepoints | """Spanningmultiplelines""" |
tuple | immutable | Tuple, can contain mixed types |
| |
Arithmetic operations
Python includes conventional symbols for arithmetic operators (+, -, *, /), the floor-division operator //, and the modulo operator %. (With the modulo operator, a remainder can be negative, e.g., 4 % -3 == -2.) Also, Python offers the ** symbol for exponentiation, e.g. 5**3 == 125 and 9**0.5 == 3.0. Also, it offers the matrix‑multiplication operator @ .[65] These operators work as in traditional mathematics; with the same precedence rules, the infix operators + and - can also be unary, to represent positive and negative numbers respectively.
Division between integers produces floating-point results. The behavior of division has changed significantly over time:
- The current version of Python (i.e., since 3.0) changed the
/ operator to always represent floating-point division, e.g., .
- The floor division
// operator was introduced, meaning that 7//3 == 2, -7//3 == -3, 7.5//3 == 2.0, and -7.5//3 == -3.0. For Python 2.7, adding the statement allows a module in Python 2.7 to use Python 3.x rules for division (see above).
In Python terms, the / operator represents true division (or simply division), while the // operator represents floor division. Before version 3.0, the / operator represents classic division.
Rounding towards negative infinity, though a different method than in most languages, adds consistency to Python. For instance, this rounding implies that the equation is always true. Also, the rounding implies that the equation is valid for both positive and negative values of a. As expected, the result of a%b lies in the half-open interval [0, ''b''), where <code>b</code> is a positive integer; however, maintaining the validity of the equation requires that the result must lie in the interval (''b'', 0] when b is negative.
Python provides a round function for rounding a float to the nearest integer. For tie-breaking, Python 3 uses the round to even method: round(1.5) and round(2.5) both produce 2. Python versions before 3 used the round-away-from-zero method: round(0.5) is 1.0, and round(-0.5) is −1.0.
Python allows Boolean expressions that contain multiple equality relations to be consistent with general usage in mathematics. For example, the expression a < b < c tests whether a is less than b and b is less than c. C-derived languages interpret this expression differently: in C, the expression would first evaluate a < b, resulting in 0 or 1, and that result would then be compared with c.
Python uses arbitrary-precision arithmetic for all integer operations. The Decimal type/class in the decimal module provides decimal floating-point numbers to a pre-defined arbitrary precision with several rounding modes. The Fraction class in the fractions module provides arbitrary precision for rational numbers.[66]
Due to Python's extensive mathematics library and the third-party library NumPy, the language is frequently used for scientific scripting in tasks such as numerical data processing and manipulation.[67] [68]
Function syntax
Functions are created in Python by using the def keyword. A function is defined similarly to how it is called, by first providing the function name and then the required parameters. Here is an example of a function that prints its inputs:def printer(input1, input2 = "already there"): print(input1) print(input2) printer("hello")
- Example output:
- hello
- already there
To assign a default value to a function parameter in case no actual value is provided at run time, variable-definition syntax can be used inside the function header.
Code examples
"Hello, World!" program
print('Hello, World!')
Program to calculate the factorial of a non-negative integer:text = input('Type a number, and its factorial will be printed: ')n = int(text)
if n < 0: raise ValueError('You must enter a non-negative integer')
factorial = 1for i in range(2, n + 1): factorial *= i
print(factorial)
Libraries
Python's large standard library is commonly cited as one of its greatest strengths. For Internet-facing applications, many standard formats and protocols such as MIME and HTTP are supported. The language includes modules for creating graphical user interfaces, connecting to relational databases, generating pseudorandom numbers, arithmetic with arbitrary-precision decimals, manipulating regular expressions, and unit testing.
Some parts of the standard library are covered by specifications—for example, the Web Server Gateway Interface (WSGI) implementation wsgiref follows PEP 333—but most parts are specified by their code, internal documentation, and test suites. However, because most of the standard library is cross-platform Python code, only a few modules must be altered or rewritten for variant implementations.
the Python Package Index (PyPI), the official repository for third-party Python software, contains over 614,339[69] packages.
Development environments
Most Python implementations (including CPython) include a read–eval–print loop (REPL); this permits the environment to function as a command line interpreter, with which users enter statements sequentially and receive results immediately.[70]
Also, CPython is bundled with an integrated development environment (IDE) called IDLE,[71] which is oriented toward beginners.
Other shells, including IDLE and IPython, add additional capabilities such as improved auto-completion, session-state retention, and syntax highlighting.[72]
Standard desktop IDEs include PyCharm, Spyder, and Visual Studio Code;[73] there are web browser-based IDEs, such as the following environments:
Implementations
Reference implementation
CPython is the reference implementation of Python. This implementation is written in C, meeting the C11 standard[77] since version 3.11. Older versions use the C89 standard with several select C99 features, but third-party extensions are not limited to older C versions—e.g., they can be implemented using C11 or C++.[78] CPython compiles Python programs into an intermediate bytecode, which is then executed by a virtual machine. CPython is distributed with a large standard library written in a combination of C and native Python.
CPython is available for many platforms, including Windows and most modern Unix-like systems, including macOS (and Apple M1 Macs, since Python 3.9.1, using an experimental installer). Starting with Python 3.9, the Python installer intentionally fails to install on Windows 7 and 8;[79] [80] Windows XP was supported until Python 3.5, with unofficial support for VMS.[81] Platform portability was one of Python's earliest priorities. During development of Python 1 and 2, even OS/2 and Solaris were supported;[82] since that time, support has been dropped for many platforms.
All current Python versions (since 3.7) support only operating systems that feature multithreading, by now supporting not nearly as many operating systems (dropping many outdated) than in the past.
Limitations of the reference implementation
- The energy usage of Python with CPython for typically written code is much worse than C by a factor of 75.88.[83]
- The throughput of Python with CPython for typically written code is worse than C by a factor of 71.9.
- The average memory usage of CPython for typically written code is worse than C by a factor of 2.4.
Other implementations
All alternative implementations have at least slightly different semantics. For example, an alternative may include unordered dictionaries, in contrast to other current Python versions. As another example in the larger Python ecosystem, PyPy does not support the full C Python API.
Creating an executable with Python often is done by bundling an entire Python interpreter into the executable, which causes binary sizes to be massive for small programs,[84] yet there exist implementations that are capable of truly compiling Python. Alternative implementations include the following:
- PyPy is a faster, compliant interpreter of Python 2.7 and 3.10.[85] PyPy's just-in-time compiler often improves speed significantly relative to CPython, but PyPy does not support some libraries written in C. PyPy offers support for the RISC-V instruction-set architecture.
- Codon is an implementation with an ahead-of-time (AOT) compiler, which compiles a statically-typed Python-like language whose "syntax and semantics are nearly identical to Python's, there are some notable differences"[86] For example, Codon uses 64-bit machine integers for speed, not arbitrarily as with Python; Codon developers claim that speedups over CPython are usually on the order of ten to a hundred times. Codon compiles to machine code (via LLVM) and supports native multithreading.[87] Codon can also compile to Python extension modules that can be imported and used from Python.
- MicroPython and CircuitPython are Python 3 variants that are optimized for microcontrollers, including the Lego Mindstorms EV3.[88]
- Pyston is a variant of the Python runtime that uses just-in-time compilation to speed up execution of Python programs.[89]
- Cinder is a performance-oriented fork of CPython 3.8 that features a number of optimizations, including bytecode inline caching, eager evaluation of coroutines, a method-at-a-time JIT, and an experimental bytecode compiler.[90]
- The Snek[91] [92] [93] embedded computing language "is Python-inspired, but it is not Python. It is possible to write Snek programs that run under a full Python system, but most Python programs will not run under Snek."[94] Snek is compatible with 8-bit AVR microcontrollers such as ATmega 328P-based Arduino, as well as larger microcontrollers that are compatible with MicroPython. Snek is an imperative language that (unlike Python) omits object-oriented programming. Snek supports only one numeric data type, which features 32-bit single precision (resembling JavaScript numbers, though smaller).
Unsupported implementations
Stackless Python is a significant fork of CPython that implements microthreads. This implementation uses the call stack differently, thus allowing massively concurrent programs. PyPy also offers a stackless version.
Just-in-time Python compilers have been developed, but are now unsupported:
- Google began a project named Unladen Swallow in 2009: this project aimed to speed up the Python interpreter five-fold by using LLVM, and improve multithreading capability for scaling to thousands of cores, while typical implementations are limited by the global interpreter lock.
- Psyco is a discontinued just-in-time specializing compiler, which integrates with CPython and transforms bytecode to machine code at runtime. The emitted code is specialized for certain data types and is faster than standard Python code. Psyco does not support Python 2.7 or later.
- PyS60 was a Python 2 interpreter for Series 60 mobile phones, which was released by Nokia in 2005. The interpreter implemented many modules from Python's standard library, as well as additional modules for integration with the Symbian operating system. The Nokia N900 also supports Python through the GTK widget library, allowing programs to be written and run on the target device.[95]
Transpilers to other languages
There are several compilers/transpilers to high-level object languages; the source language is unrestricted Python, a subset of Python, or a language similar to Python:
- Brython[96] and Transcrypt[97] [98] compile Python to JavaScript.
- Cython compiles a superset of Python to C. The resulting code can be used with Python via direct C-level API calls into the Python interpreter.
- PyJL compiles/transpiles a subset of Python to "human-readable, maintainable, and high-performance Julia source code".[99] Despite the developers' performance claims, this is not possible for arbitrary Python code; that is, compiling to a faster language or machine code is known to be impossible in the general case. The semantics of Python might potentially be changed, but in many cases speedup is possible with few or no changes in the Python code. The faster Julia source code can then be used from Python or compiled to machine code.
- Nuitka compiles Python into C.[100] This compiler works with Python 3.4 to 3.13 (and 2.6 and 2.7) for Python's main supported platforms (and Windows 7 or even Windows XP) and for Android. The compiler developers claim full support for Python 3.10, partial support for Python 3.11 and 3.12, and experimental support for Python 3.13. Nuitka supports macOS including Apple Silicon-based versions. The compiler is free of cost, though it has commercial add-ons (e.g., for hiding source code).
- Numba is a JIT compiler that is used from Python; the compiler translates a subset of Python and NumPy code into fast machine code. This tool is enabled by adding a decorator to the relevant Python code.
- Pythran compiles a subset of Python 3 to C++ (C++11).[101]
- RPython can be compiled to C, and it is used to build the PyPy interpreter for Python.
- The Python → 11l → C++ transpiler[102] compiles a subset of Python 3 to C++ (C++17).
There are also specialized compilers:
Some older projects existed, as well as compilers not designed for use with Python 3.x and related syntax:
- Google's Grumpy transpiles Python 2 to Go.[103] [104] [105] The latest release was in 2017.
- IronPython allows running Python 2.7 programs with the .NET Common Language Runtime.[106] An alpha version (released in 2021), is available for "Python 3.4, although features and behaviors from later versions may be included."[107]
- Jython compiles Python 2.7 to Java bytecode, allowing the use of Java libraries from a Python program.[108]
- Pyrex (last released in 2010) and Shed Skin (last released in 2013) compile to C and C++ respectively.
Performance
A performance comparison among various Python implementations, using a non-numerical (combinatorial) workload, was presented at EuroSciPy '13.[109] In addition, Python's performance relative to other programming languages is benchmarked by The Computer Language Benchmarks Game.[110]
There are several approaches to optimizing Python performance, despite the inherent slowness of an interpreted language. These approaches include the following strategies or tools:
- Just-in-time compilation: Dynamically compiling parts of a Python program during the execution of the program. This technique is used in libraries such as Numba and PyPy.
- Static compilation: Sometimes, Python code can be compiled into machine code sometime before execution. An example of this approach is Cython, which compiles Python into C.
- Concurrency and parallelism: Multiple tasks can be run simultaneously. Python contains modules such as `multiprocessing` to support this form of parallelism. Moreover, this approach helps to overcome limitations of the Global Interpreter Lock (GIL) in CPU tasks.
- Efficient data structures: Performance can also be improved by using data types such as
Set for membership tests, or deque from collections for queue operations.
- Performance gains can be observed by utilizing libraries such as NumPy. Most high performance Python libraries use C or Fortran under the hood instead of the Python interpreter.[111]
Language Development
Python's development is conducted mostly through the Python Enhancement Proposal (PEP) process; this process is the primary mechanism for proposing major new features, collecting community input on issues, and documenting Python design decisions. Python coding style is covered in PEP 8.[48] Outstanding PEPs are reviewed and commented on by the Python community and the steering council.
Enhancement of the language corresponds with development of the CPython reference implementation. The mailing list python-dev is the primary forum for the language's development. Specific issues were originally discussed in the Roundup bug tracker hosted by the foundation. In 2022, all issues and discussions were migrated to GitHub.[112] Development originally took place on a self-hosted source-code repository running Mercurial, until Python moved to GitHub in January 2017.[113]
CPython's public releases have three types, distinguished by which part of the version number is incremented:
- Backward-incompatible versions, where code is expected to break and must be manually ported. The first part of the version number is incremented. These releases happen infrequently—version 3.0 was released 8 years after 2.0. According to Guido van Rossum, a version 4.0 will probably never exist.[114]
- Major or "feature" releases are largely compatible with the previous version but introduce new features. The second part of the version number is incremented. Starting with Python 3.9, these releases are expected to occur annually.[115] [116] Each major version is supported by bug fixes for several years after its release.
- Bug fix releases, which introduce no new features, occur approximately every three months; these releases are made when a sufficient number of bugs have been fixed upstream since the last release. Security vulnerabilities are also patched in these releases. The third and final part of the version number is incremented.
Many alpha, beta, and release-candidates are also released as previews and for testing before final releases. Although there is a rough schedule for releases, they are often delayed if the code is not ready yet. Python's development team monitors the state of the code by running a large unit test suite during development.
The major academic conference on Python is PyCon. Also, there are special Python mentoring programs, such as PyLadies.
Naming
Python's name is inspired by the British comedy group Monty Python, whom Python creator Guido van Rossum enjoyed while developing the language. Monty Python references appear frequently in Python code and culture; for example, the metasyntactic variables often used in Python literature are spam and eggs, rather than the traditional foo and bar. Also, the official Python documentation contains various references to Monty Python routines.[117] Python users are sometimes referred to as "Pythonistas".[118]
Languages influenced by Python
See also
References
Sources
- Web site: Python for Artificial Intelligence . Python Wiki . 19 July 2012 . 3 December 2012 . https://web.archive.org/web/20121101045354/http://wiki.python.org/moin/PythonForArtificialIntelligence . 1 November 2012.
- Paine . Jocelyn . AI in Python . AI Expert Newsletter . Amzi! . August 2005 . 11 February 2012 . https://web.archive.org/web/20120326105810/http://www.ainewsletter.com/newsletters/aix_0508.htm#python_ai_ai . 26 March 2012 .
- Web site: PyAIML 0.8.5: Python Package Index . Pypi.python.org . 17 July 2013.
- Book: Artificial Intelligence: A Modern Approach . Russell . Stuart J. . Stuart J. Russell . Norvig . Peter . Peter Norvig . amp . 3rd . 2009 . Prentice Hall . Upper Saddle River, NJ . 978-0-13-604259-4.
Further reading
- Book: Downey, Allen . Think Python: How to Think Like a Computer Scientist . 3rd . July 2024 . O'Reilly Media . 978-1-0981-5543-8 .
- Book: Lutz, Mark . Learning Python . O'Reilly Media . 2013 . 5th . 978-0-596-15806-4.
- Book: Summerfield, Mark . Programming in Python 3 . Addison-Wesley Professional. 2009. 2nd. 978-0-321-68056-3.
- Book: Ramalho, Luciano . Fluent Python . May 2022 . O'Reilly Media . 978-1-4920-5632-4.
External links
Notes and References
- Web site: General Python FAQ – Python 3 documentation . 7 July 2024 . docs.python.org.
- Web site: Python 0.9.1 part 01/21 . live . https://web.archive.org/web/20210811171015/https://www.tuhs.org/Usenet/alt.sources/1991-February/001749.html . 11 August 2021 . 11 August 2021 . alt.sources archives.
- Web site: Why is Python a dynamic language and also a strongly typed language . live . https://web.archive.org/web/20210314173706/https://wiki.python.org/moin/Why%20is%20Python%20a%20dynamic%20language%20and%20also%20a%20strongly%20typed%20language . 14 March 2021 . 27 January 2021 . Python Wiki.
- Web site: Cannon . Brett . 20 February 2015 . PEP 488 – Elimination of PYO files . Python Enhancement Proposals (PEPs) . 28 February 2026 . https://web.archive.org/web/20260116004856/https://peps.python.org/pep-0488/ . 16 January 2026 . en . A PYC file is the bytecode file generated and read from when no optimization level is specified at interpreter startup [...]
.pyc . live.
- Web site: Ahlstrom . James C. . PEP 273 – Import Modules from Zip Archives . Python Enhancement Proposals (PEPs) . 28 February 2026 . https://web.archive.org/web/20260225044635/https://peps.python.org/pep-0273/ . 25 Feb 2026 . en . 11 October 2001 . Dynamic modules have extensions like
.dll, .pyd, and .so. . live.
- Web site: Harper Smith . Emma . 9 September 2017 . PEP 561 – Distributing and Packaging Type Information . Python Enhancement Proposals (PEPs) . 28 February 2026 . https://web.archive.org/web/20251207013328/https://peps.python.org/pep-0561/ . 7 December 2025 . en . 'stubs' - files containing only type information, empty of runtime code (the filename ends in
.pyi). . live.
- Web site: Hammond . Mark . von Löwis . Martin . PEP 397 – Python launcher for Windows . Python Enhancement Proposals (PEPs) . 28 February 2026 . https://web.archive.org/web/20260204012409/https://peps.python.org/pep-0397/ . 4 February 2026 . en . 15 March 2011 . [...] the 'console' version of the launcher is associated with .py files and the 'windows' version associated with .pyw files. . live.
- Web site: Holth . Daniel . Moore . Paul . 30 March 2013 . PEP 0441 – Improving Python ZIP Application Support . live . https://web.archive.org/web/20151116044812/https://www.python.org/dev/peps/pep-0441/ . 16 November 2015 . 12 November 2015 . Python Enhancement Proposals (PEPs).
- Web site: Starlark Language . live . https://web.archive.org/web/20200615140534/https://docs.bazel.build/versions/master/skylark/language.html . 15 June 2020 . 25 May 2019 . bazel.build.
- Web site: Ada 83 Reference Manual (raise statement) . live . https://web.archive.org/web/20191022155758/http://archive.adaic.com/standards/83lrm/html/lrm-11-03.html#11.3 . 22 October 2019 . 7 January 2020 . archive.adaic.com.
- Web site: itertools – Functions creating iterators for efficient looping . live . https://web.archive.org/web/20200614153629/https://docs.python.org/3/library/itertools.html . 14 June 2020 . 22 November 2016 . Python 3.7.17 documentation . This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML..
- Web site: re – Regular expression operations . live . https://web.archive.org/web/20180718132241/https://docs.python.org/3/library/re.html . 18 July 2018 . 6 September 2022 . Python 3.10.6 documentation . This module provides regular expression matching operations similar to those found in Perl..
- Web site: CoffeeScript . live . https://web.archive.org/web/20200612100004/http://coffeescript.org/ . 12 June 2020 . 3 July 2018 . coffeescript.org.
- Web site: Rauschmayer . Axel . 24 February 2013 . Perl and Python influences in JavaScript . live . https://web.archive.org/web/20181226141121/http://2ality.com/2013/02/javascript-influences.html%0A . 26 December 2018 . 15 May 2015 . 2ality.com.
- Web site: Rauschmayer . Axel . Chapter 3: The Nature of JavaScript; Influences . live . https://web.archive.org/web/20181226141123/http://speakingjs.com/es5/ch03.html%0A . 26 December 2018 . 15 May 2015 . Speaking JavaScript . O'Reilly.
- Web site: Bezanson . Jeff . Karpinski . Stefan . Shah . Viral B. . Edelman . Alan . February 2012 . Why We Created Julia . live . https://web.archive.org/web/20200502144010/https://julialang.org/blog/2012/02/why-we-created-julia/ . 2 May 2020 . 5 June 2014 . Julia website . We want something as usable for general programming as Python [...].
- Web site: PEP 484 – Type Hints . Python Enhancement Proposals . 27 October 2025 . en.
- Web site: mypy – Optional Static Typing for Python . 17 August 2025 . mypy-lang.org.
- Web site: What's new in Python 3.15. 26 January 2026.
- Web site: Stack Overflow Developer Survey 2022 . live . https://web.archive.org/web/20220627175307/https://survey.stackoverflow.co/2022/ . 27 June 2022 . 12 August 2022 . Stack Overflow . en.
- Web site: The State of Developer Ecosystem in 2020 Infographic . live . https://web.archive.org/web/20210301062411/https://www.jetbrains.com/lp/devecosystem-2020/ . 1 March 2021 . 5 March 2021 . JetBrains . en.
- Web site: TIOBE Index . live . https://web.archive.org/web/20180225101948/https://www.tiobe.com/tiobe-index/ . 25 February 2018 . 3 January 2023 . TIOBE . The TIOBE Programming Community index is an indicator of the popularity of programming languages. Updated as required.
- Healy . John . McInnes . Leland . Weir . Colin . 2017 . Bridging the Cyber-Analysis Gap: The Democratization of Data Science . The Cyber Defense Review . 2 . 1 . 109–118 . 2474-2120 . 26267404 . "Python is the lingua franca of data science and machine learning.".
- Sultana . Simon G. . Reed . Philip A. . 2017 . Curriculum for an Introductory Computer Science Course: Identifying Recommendations from Academia and Industry . The Journal of Technology Studies . 43 . 2 . 80–92 . 10.21061/jots.v43i2.a.3 . 1071-6084 . 90023144.
- Web site: TIOBE Index . TIOBE . 3 January 2023 . The TIOBE Programming Community index is an indicator of the popularity of programming languages . 25 February 2018 . https://web.archive.org/web/20180225101948/https://www.tiobe.com/tiobe-index/ . live.
- Web site: Smith . Nathaniel J. . Durbin . Ee . PEP 8100 – January 2019 Steering Council election . live . https://web.archive.org/web/20200604235027/https://www.python.org/dev/peps/pep-8100/ . 4 June 2020 . 4 May 2019 . Python Enhancement Proposals (PEPs) . Python Software Foundation.
- Web site: The Python core team and community . PEP 13 – Python Language Governance . live . https://web.archive.org/web/20210527000035/https://www.python.org/dev/peps/pep-0013/ . 27 May 2021 . 25 August 2021 . Python Enhancement Proposals (PEPs) . en.
- Book: Briggs . Jason R. . Python for kids: a playful introduction to programming . Lipovača . Miran . 2013 . No Starch Press . 978-1-59327-407-8 . San Francisco, California, USA . 2012044047 . 825076499 . 26119645M.
- Web site: Peterson . Benjamin . PEP 373 – Python 2.7 Release Schedule . live . https://web.archive.org/web/20200519075520/https://legacy.python.org/dev/peps/pep-0373/ . 19 May 2020 . 9 January 2017 . python.org.
- Web site: Coghlan . Alyssa . PEP 466 – Network Security Enhancements for Python 2.7.x . live . https://web.archive.org/web/20200604232833/https://www.python.org/dev/peps/pep-0466/ . 4 June 2020 . 9 January 2017 . Python Enhancement Proposals (PEPs).
- Web site: Sunsetting Python 2 . live . https://web.archive.org/web/20200112080903/https://www.python.org/doc/sunset-python-2/ . 12 January 2020 . 22 September 2019 . Python.org . en.
- Web site: Peterson . Benjamin . PEP 373 – Python 2.7 Release Schedule . live . https://web.archive.org/web/20200113033257/https://www.python.org/dev/peps/pep-0373/ . 13 January 2020 . 22 September 2019 . Python Enhancement Proposals (PEPs) . en.
- Web site: mattip . 25 December 2023 . PyPy v7.3.14 release . live . https://web.archive.org/web/20240105132820/https://www.pypy.org/posts/2023/12/pypy-v7314-release.html . 5 January 2024 . 5 January 2024 . PyPy . en.
- Web site: Peterson . Benjamin . 20 April 2020 . Python 2.7.18, the last release of Python 2 . live . https://web.archive.org/web/20200426204118/https://pythoninsider.blogspot.com/2020/04/python-2718-last-release-of-python-2.html . 26 April 2020 . 27 April 2020 . Python Insider.
- Web site: Status of Python versions . 12 November 2025 . Python Developer's Guide . en.
- Web site: Glue it all together with Python . 2024-09-30 . Python.org . en.
- Web site: Reference counts . Extending and embedding the Python interpreter . Docs.python.org . en . live . 5 June 2020 . Since Python makes heavy use of
malloc and free. }
- Web site: Lutz . Mark . January 2022 . Learning Python . Python changes 2014+ . live . 25 February 2024 . https://web.archive.org/web/20240315075935/https://learning-python.com/python-changes-2014-plus.html . 15 March 2024 .
- Web site: Confusion regarding a rule in 'the Zen of Python' . 2022-05-03 . Discussions . Python help . Python.org . 2024-02-25 . 25 February 2024 . https://web.archive.org/web/20240225221142/https://discuss.python.org/t/confusion-regarding-a-rule-in-the-zen-of-python/15927 . live.
- Web site: Ambi . Chetan . 2021-07-04 . The most controversial Python 'walrus operator' . Python simplified (pythonsimplified.com) . live . 2024-02-05 . https://web.archive.org/web/20230827154931/https://pythonsimplified.com/the-most-controversial-python-walrus-operator/ . 27 August 2023 .
- Web site: Grifski . Jeremy . 2020-05-24 . The controversy behind the 'walrus operator' in Python . The Renegade Coder (therenegadecoder.com) . live . 2024-02-25 . https://web.archive.org/web/20231228135749/https://therenegadecoder.com/code/the-controversy-behind-the-walrus-operator-in-python/ . 28 December 2023 .
- Web site: [Python-ideas] PEP 315: do-while ]. 26 June 2013 .
- Web site: Bader . Dan . Python string formatting best practices . Real Python (realpython.com) . live . 2024-02-25 . https://web.archive.org/web/20240218083506/https://realpython.com/python-string-formatting/ . 18 February 2024 .
- Web site: 15 ways Python is a powerful force on the web . 3 July 2018 . https://web.archive.org/web/20190511065650/http://insidetech.monster.com/training/articles/8114-15-ways-python-is-a-powerful-force-on-the-web . 11 May 2019 .
- Web site:
pprint – data pretty printer – documentation . docs.python.org . stuff {{=}} ['spam', 'eggs', 'lumberjack', 'knights', 'ni'] . live . 2022-11-05 . https://web.archive.org/web/20210122224848/https://docs.python.org/3/library/pprint.html . 22 January 2021 .
- Web site: Code style . The hitchhiker's guide to Python . docs.python-guide.org . live . 20 January 2021 . https://web.archive.org/web/20210127154341/https://docs.python-guide.org/writing/style/ . 27 January 2021 .
- Book: Guttag, John V. . MIT Press . 978-0-262-52962-4 . Introduction to Computation and Programming Using Python: With Application to Understanding Data . 12 August 2016.
- Web site: Guido . van Rossum . Barry . Warsaw . PEP 8 – Style Guide for Python Code. Python Enhancement Proposals (PEPs). 26 March 2019. 17 April 2019. https://web.archive.org/web/20190417223549/https://www.python.org/dev/peps/pep-0008/. live.
- Web site: 8. Errors and Exceptions – Python 3.12.0a0 documentation . 2022-05-09 . docs.python.org . 9 May 2022 . https://web.archive.org/web/20220509145745/https://docs.python.org/3.11/tutorial/errors.html . live.
- Web site: Highlights: Python 2.5. Python.org. 20 March 2018. 4 August 2019. https://web.archive.org/web/20190804120408/https://www.python.org/download/releases/2.5/highlights/. live.
- Web site: division. python.org. 30 July 2014. 20 July 2006. https://web.archive.org/web/20060720033244/http://docs.python.org/. live.
- Web site: PEP 0465 – A dedicated infix operator for matrix multiplication . python.org . 1 January 2016 . 4 June 2020 . https://web.archive.org/web/20200604224255/https://www.python.org/dev/peps/pep-0465/ . live.
- Web site: Python 3.5.1 Release and Changelog . python.org . 1 January 2016 . 14 May 2020 . https://web.archive.org/web/20200514034938/https://www.python.org/downloads/release/python-351/ . live.
- Web site: What's New in Python 3.8 . 14 October 2019 . 8 June 2020 . https://web.archive.org/web/20200608124345/https://docs.python.org/3.8/whatsnew/3.8.html . live.
- Web site: 4. Built-in Types – Python 3.6.3rc1 documentation. python.org. 1 October 2017. 14 June 2020. https://web.archive.org/web/20200614194325/https://docs.python.org/3/library/stdtypes.html#tuple. live.
- Web site: 5.3. Tuples and Sequences – Python 3.7.1rc2 documentation. python.org. 17 October 2018. 10 June 2020. https://web.archive.org/web/20200610050047/https://docs.python.org/3/tutorial/datastructures.html#tuples-and-sequences. live.
- Web site: PEP 498 – Literal String Interpolation . python.org . 8 March 2017 . 15 June 2020 . https://web.archive.org/web/20200615184141/https://www.python.org/dev/peps/pep-0498/ . live.
- Web site: van Rossum . Guido . Levkivskyi . Ivan . PEP 483 – The Theory of Type Hints . live . https://web.archive.org/web/20200614153558/https://www.python.org/dev/peps/pep-0483/ . 14 June 2020 . 14 June 2018 . Python Enhancement Proposals (PEPs).
- Web site: PEP 484 – Type Hints peps.python.org . 2023-11-29 . peps.python.org . 27 November 2023 . https://web.archive.org/web/20231127205023/https://peps.python.org/pep-0484/ . live.
- Web site: typing — Support for type hints . Python documentation . Python Software Foundation . 22 December 2023 . 21 February 2020 . https://web.archive.org/web/20200221184042/https://docs.python.org/3/library/typing.html . live.
- Web site: mypy – Optional Static Typing for Python . 28 January 2017 . 6 June 2020 . https://web.archive.org/web/20200606192012/http://mypy-lang.org/ . live.
- Web site: Introduction . mypyc.readthedocs.io . 22 December 2023 . 22 December 2023 . https://web.archive.org/web/20231222000457/https://mypyc.readthedocs.io/en/latest/introduction.html . live.
- Web site: 15. Floating Point Arithmetic: Issues and Limitations – Python 3.8.3 documentation . 6 June 2020 . docs.python.org . Almost all machines today (November 2000) use IEEE-754 floating point arithmetic, and almost all platforms map Python floats to IEEE-754 "double precision". . 6 June 2020 . https://web.archive.org/web/20200606113842/https://docs.python.org/3.8/tutorial/floatingpoint.html#representation-error . live.
- Web site: Built-in Types . 3 October 2019 . 14 June 2020 . https://web.archive.org/web/20200614194325/https://docs.python.org/3/library/stdtypes.html#typesseq-range . live.
- Web site: PEP 465 – A dedicated infix operator for matrix multiplication . python.org . 3 July 2018 . 29 May 2020 . https://web.archive.org/web/20200529200310/https://legacy.python.org/dev/peps/pep-0465/ . live.
- Web site: What's New in Python 2.6 . Python v2.6.9 documentation . Oct 29, 2013 . 26 September 2015. 23 December 2019. https://web.archive.org/web/20191223213856/https://docs.python.org/2.6/whatsnew/2.6.html. live.
- Web site: 10 Reasons Python Rocks for Research (And a Few Reasons it Doesn't) – Hoyt Koepke. University of Washington Department of Statistics . 3 February 2019. 31 May 2020. https://web.archive.org/web/20200531211840/https://www.stat.washington.edu/~hoytak/blog/whypython.html.
- Web site: An introduction to Python for scientific computing. Shell. Scott. 17 June 2014. 3 February 2019. 4 February 2019. https://web.archive.org/web/20190204014642/https://engineering.ucsb.edu/~shell/che210d/python.pdf. live.
- Web site: 2025-03-13 . PyPI . live . https://web.archive.org/web/20250222013445/https://pypi.org/ . 2025-02-22 . PyPI.
- Web site: Glossary: interactive . Python documentation . 31 August 2025 . en . v3.13.7.
- Web site: IDLE — Python editor and shell . Python documentation . v3.13.7 . 31 August 2025 . en . IDLE is Python's Integrated Development and Learning Environment..
- Web site: IPython Documentation . 31 August 2025 . https://web.archive.org/web/20250831204721/https://ipython.readthedocs.io/en/stable/ . 2025-08-31 . en . v9.5.0 . August 29, 2025 . live.
- Web site: Python in Visual Studio Code. code.visualstudio.com. 2025-12-01. en.
- Web site: Project Jupyter . Jupyter.org . 2 April 2025 . 12 October 2023 . https://web.archive.org/web/20231012055917/https://jupyter.org/ . live.
- Web site: Harper . Doug . Enthought Canopy . WKU Physics 316 . . 31 August 2025 . https://web.archive.org/web/20240818041226/http://physics.wku.edu/phys316/software/canopy/ . 2024-08-18 . en . Spring 2024 . live.
- Web site: Enthought Canopy. Enthought. 20 August 2016. 15 July 2017. https://web.archive.org/web/20170715151703/https://www.enthought.com/products/canopy/.
- Web site: PEP 7 – Style Guide for C Code peps.python.org . 2022-04-28 . peps.python.org . 24 April 2022 . https://web.archive.org/web/20220424202827/https://peps.python.org/pep-0007/ . live.
- Web site: 4. Building C and C++ Extensions – Python 3.9.2 documentation. 2021-03-01. docs.python.org. 3 March 2021. https://web.archive.org/web/20210303002519/https://docs.python.org/3/extending/building.html. live.
- Web site: Changelog – Python 3.9.0 documentation . live . https://web.archive.org/web/20210207001142/https://docs.python.org/release/3.9.0/whatsnew/changelog.html#changelog . 7 February 2021 . 2021-02-08 . docs.python.org.
- Web site: Download Python . live . https://web.archive.org/web/20201208045225/https://www.python.org/downloads/release/python-391/ . 8 December 2020 . 2020-12-13 . Python.org . en.
- Web site: history [vmspython]]. 2020-12-04. www.vmspython.org. 2 December 2020. https://web.archive.org/web/20201202194743/https://www.vmspython.org/doku.php?id=history. live.
- Web site: Download Python for Other Platforms . live . https://web.archive.org/web/20201127015815/https://www.python.org/download/other/ . 27 November 2020 . 18 August 2023 . Python.org . en.
- Book: Pereira . Rui . Couto . Marco . Ribeiro . Francisco . Rua . Rui . Cunha . Jácome . Fernandes . João Paulo . Saraiva . João . Energy efficiency across programming languages: How do energy, time, and memory relate? . 2017-10-23 . Proceedings of the 10th ACM SIGPLAN International Conference on Software Language Engineering . https://doi.org/10.1145/3136014.3136031 . SLE 2017 . New York, NY, USA . Association for Computing Machinery . 256–267 . 10.1145/3136014.3136031 . 978-1-4503-5525-4 .
- Web site: What PyInstaller Does and How It Does It.
- Web site: Team. The PyPy. 2019-12-28. Download and Install. 2022-01-08. PyPy. en. 8 January 2022. https://web.archive.org/web/20220108212951/https://www.pypy.org/download.html. live.
- Web site: Codon: Differences with Python . live . https://web.archive.org/web/20230525002540/https://docs.exaloop.io/codon/general/differences . 2023-05-25 . 2023-08-28.
- Web site: Lawson . Loraine . 2023-03-14 . MIT-Created Compiler Speeds up Python Code . live . https://web.archive.org/web/20230406054200/https://thenewstack.io/mit-created-compiler-speeds-up-python-code/ . 2023-04-06 . 2023-08-28 . The New Stack . en-US.
- Web site: Python-for-EV3. LEGO Education. en. 17 April 2019. 7 June 2020. https://web.archive.org/web/20200607234814/https://education.lego.com/en-us/support/mindstorms-ev3/python-for-ev3. live.
- News: Pyston returns from the dead to speed Python. Yegulalp. Serdar. 29 October 2020. InfoWorld. 26 January 2021. 27 January 2021. https://web.archive.org/web/20210127113233/https://www.infoworld.com/article/3587591/pyston-returns-from-the-dead-to-speed-python.html. live.
- Web site: cinder: Instagram's performance-oriented fork of CPython.. GitHub. 4 May 2021. en. 4 May 2021. https://web.archive.org/web/20210504112500/https://github.com/facebookincubator/cinder. live.
- Web site: Aroca . Rafael . 2021-08-07 . Snek Lang: feels like Python on Arduinos . 2024-01-04 . Yet Another Technology Blog . en . 5 January 2024 . https://web.archive.org/web/20240105001031/https://rafaelaroca.wordpress.com/2021/08/07/snek-lang-feels-like-python-on-arduinos/ . live.
- Web site: Aufranc (CNXSoft) . Jean-Luc . 2020-01-16 . Snekboard Controls LEGO Power Functions with CircuitPython or Snek Programming Languages (Crowdfunding) – CNX Software . 2024-01-04 . CNX Software – Embedded Systems News . en-US . 5 January 2024 . https://web.archive.org/web/20240105001031/https://www.cnx-software.com/2020/01/16/snekboard-controls-lego-power-functions-with-circuitpython-or-snek-programming-languages/ . live.
- Web site: Kennedy (@mkennedy) . Michael . Ready to find out if you're git famous? . 2024-01-04 . pythonbytes.fm . en-US . 5 January 2024 . https://web.archive.org/web/20240105001031/https://pythonbytes.fm/episodes/show/187/ready-to-find-out-if-youre-git-famous . live.
- Web site: Packard . Keith . 2022-12-20 . The Snek Programming Language: A Python-inspired Embedded Computing Language . 4 January 2024 . 4 January 2024 . https://web.archive.org/web/20240104162458/https://sneklang.org/doc/snek.pdf . live.
- Web site: Python on the Nokia N900. Stochastic Geometry. 29 April 2010. 9 July 2015. 20 June 2019. https://web.archive.org/web/20190620000053/http://www.stochasticgeometry.ie/2010/04/29/python-on-the-nokia-n900/. live.
- Web site: Brython. 2021-01-21. brython.info. 3 August 2018. https://web.archive.org/web/20180803065954/http://brython.info/. live.
- Web site: Transcrypt – Python in the browser. 22 December 2020. transcrypt.org. en. 19 August 2018. https://web.archive.org/web/20180819133303/http://www.transcrypt.org/. live.
- Web site: Transcrypt: Anatomy of a Python to JavaScript Compiler. InfoQ. 20 January 2021. 5 December 2020. https://web.archive.org/web/20201205193339/https://www.infoq.com/articles/transcrypt-python-javascript-compiler/. live.
- Web site: Transpiling Python to Julia using PyJL. After manually modifying one line of code by specifying the necessary type information, we obtained a speedup of 52.6×, making the translated Julia code 19.5× faster than the original Python code.. 20 September 2023. 19 November 2023. https://web.archive.org/web/20231119071525/https://web.ist.utl.pt/antonio.menezes.leitao/ADA/documents/publications_docs/2022_TranspilingPythonToJuliaUsingPyJL.pdf. live.
- Web site: Nuitka Home Nuitka Home. 18 August 2017. nuitka.net. en. 30 May 2020. https://web.archive.org/web/20200530211233/https://nuitka.net/. live.
- Guelton . Serge . Brunet . Pierrick . Amini . Mehdi . Merlini . Adrien . Corbillon . Xavier . Raynaud . Alan . Pythran: enabling static optimization of scientific Python programs . Computational Science & Discovery . IOP Publishing . 8 . 1 . 16 March 2015 . 1749-4699 . 10.1088/1749-4680/8/1/014001. free . 014001 . 2015CS&D....8a4001G.
- Web site: The Python → 11l → C++ transpiler . 17 July 2022 . 24 September 2022 . https://web.archive.org/web/20220924233728/https://11l-lang.org/transpiler/ . live.
- Web site: google/grumpy. 10 April 2020. GitHub. 25 March 2020. 15 April 2020. https://web.archive.org/web/20200415054919/https://github.com/google/grumpy. live.
- Web site: Projects. opensource.google. 25 March 2020. 24 April 2020. https://web.archive.org/web/20200424191248/https://opensource.google/projects/. live.
- News: Google's Grumpy code makes Python Go. Thomas Claburn in San. Francisco. www.theregister.com. 20 January 2021. 7 March 2021. https://web.archive.org/web/20210307165521/https://www.theregister.com/2017/01/05/googles_grumpy_makes_python_go/. live.
- Web site: IronPython.net /. ironpython.net. 17 April 2021. https://web.archive.org/web/20210417064418/https://ironpython.net/. live.
- Web site: GitHub – IronLanguages/ironpython3: Implementation of Python 3.x for .NET Framework that is built on top of the Dynamic Language Runtime . . 28 September 2021 . https://web.archive.org/web/20210928101250/https://github.com/IronLanguages/ironpython3 . live.
- Web site: Jython FAQ. 2021-04-22. www.jython.org. 22 April 2021. https://web.archive.org/web/20210422055726/https://www.jython.org/jython-old-sites/archive/22/userfaq.html. live.
- Performance of Python runtimes on a non-numeric scientific code . Murri . Riccardo . European Conference on Python in Science (EuroSciPy) . 2013 . 1404.6388. 2014arXiv1404.6388M.
- Web site: The Computer Language Benchmarks Game. 30 April 2020. 14 June 2020. https://web.archive.org/web/20200614210246/https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/python.html. live.
- Web site: Python . Real . Look Ma, No for Loops: Array Programming With NumPy – Real Python . 2025-10-15 . realpython.com . en.
- Web site: Edge . Jake . Moving Python's bugs to GitHub [LWN.net] . 23 February 2022 . 2 October 2022 . 2 October 2022 . https://web.archive.org/web/20221002183818/https://lwn.net/Articles/885854/ . live.
- Web site: Python Developer's Guide – Python Developer's Guide. devguide.python.org. 17 December 2019. 9 November 2020. https://web.archive.org/web/20201109032501/https://devguide.python.org/. live.
- Web site: Hughes . Owen . 2021-05-24 . Programming languages: Why Python 4.0 might never arrive, according to its creator . 2022-05-16 . TechRepublic . en-US . 14 July 2022 . https://web.archive.org/web/20220714201302/https://www.techrepublic.com/article/programming-languages-why-python-4-0-will-probably-never-arrive-according-to-its-creator/ . live.
- Web site: PEP 602 – Annual Release Cycle for Python. Python.org. en. 6 November 2019. 14 June 2020. https://web.archive.org/web/20200614202755/https://www.python.org/dev/peps/pep-0602/. live.
- Web site: Edge . Jake . Changing the Python release cadence [LWN.net]]. lwn.net. 23 October 2019 . 6 November 2019. 6 November 2019. https://web.archive.org/web/20191106170153/https://lwn.net/Articles/802777/. live.
- Book: Fehily . Chris . Python . 2002 . Peachpit Press . 978-0-201-74884-0 . xv . en . 9 May 2017 . 17 July 2017 . https://web.archive.org/web/20170717044040/https://books.google.com/books?id=carqdIdfVlYC&pg=PR15 . live.
- Book: Lubanovic, Bill . Sebastopol, CA : O'Reilly Media . 978-1-4493-5936-2 . Introducing Python . 2023-07-31 . 2014 . 305.
- Web site: Acknowledgements . Esterbrook . Charles . cobra-language.com . Cobra Language . 7 April 2010 . 8 February 2008 . https://web.archive.org/web/20080208141002/http://cobra-language.com/docs/acknowledgements/ . dead.
- Web site: Proposals: iterators and generators [ES4 Wiki] |publisher=wiki.ecmascript.org |access-date=24 November 2008]. https://web.archive.org/web/20071020082650/http://wiki.ecmascript.org/doku.php?id=proposals:iterators_and_generators . dead . 20 October 2007 .
- News: Google's Go: A New Programming Language That's Python Meets C++ . Kincaid . Jason . 10 November 2009 . TechCrunch . 29 January 2010 . 18 January 2010 . https://web.archive.org/web/20100118014358/http://www.techcrunch.com/2009/11/10/google-go-language/ . live.
- Web site: Why We Created Julia . February 2012 . Julia website . 5 June 2014 . We want something as usable for general programming as Python [...] . 2 May 2020 . https://web.archive.org/web/20200502144010/https://julialang.org/blog/2012/02/why-we-created-julia/ . live.
- Web site: Krill . Paul . 4 May 2023 . Mojo language marries Python and MLIR for AI development . live . https://web.archive.org/web/20230505064554/https://www.infoworld.com/article/3695588/mojo-language-marries-python-and-mlir-for-ai-development.html . 5 May 2023 . 5 May 2023 . InfoWorld . en.
- Web site: Modular Docs – Why Mojo . 2023-05-05 . docs.modular.com . en . Mojo as a member of the Python family [..] Embracing Python massively simplifies our design efforts, because most of the syntax is already specified. [..] we decided that the right long-term goal for Mojo is to provide a superset of Python (i.e. be compatible with existing programs) and to embrace the CPython immediately for long-tail ecosystem enablement. To a Python programmer, we expect and hope that Mojo will be immediately familiar, while also providing new tools for developing systems-level code that enable you to do things that Python falls back to C and C++ for. . 5 May 2023 . https://web.archive.org/web/20230505083518/https://docs.modular.com/mojo/why-mojo.html . live.
- Web site: Spencer . Michael . What is Mojo Programming Language? . 2023-05-05 . datasciencelearningcenter.substack.com . 4 May 2023 . en . 5 May 2023 . https://web.archive.org/web/20230505090408/https://datasciencelearningcenter.substack.com/p/what-is-mojo-programming-language . live.
- Web site: GDScript . 2025-11-24 . gdscript.com.
- Web site: Lattner . Chris . 3 June 2014 . Chris Lattner's Homepage . live . https://web.archive.org/web/20181225175312/http://nondot.org/sabre/ . 25 December 2018 . 3 June 2014 . Chris Lattner . The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list..
- Web site: V documentation (Introduction) . 24 December 2024 . GitHub . en.
- Web site: uv . 2026-01-25 . docs.astral.sh.