Python

term

programming

Kept in this browser · My desk

A general-purpose programming language that its own FAQ (frequently asked questions) describes as interpreted, interactive and object-oriented, whose standard library and packages cover most network and security scripting.

Guido van Rossum started it at CWI (Centrum Wiskunde & Informatica) in the Netherlands during the 1989 Christmas holidays and posted it to USENET in February 1991. A feature release ships every October; from 3.13 on, each gets two years of bug fixes and three more of security fixes, and there is no long-term-support release beyond that. On 11 November 2026 the supported branches were 3.11 to 3.15, with 3.15.2 the newest release. The language is defined by its reference manual; the interpreter nearly everyone runs is CPython.

What it is. The Python FAQ (frequently asked questions) calls it an interpreted, interactive, object-oriented programming language with modules, exceptions, dynamic typing, very high-level dynamic data types and classes; it also supports procedural and functional styles and can be extended in C or C++. The language is defined by its reference manual. The implementation almost everyone runs is CPython, which the documentation calls the canonical implementation, distributed on python.org, as distinct from others such as Jython or IronPython. Interpreted is shorthand: CPython compiles source to bytecode, caches it in .pyc files and executes it on a virtual machine. Its global interpreter lock (GIL) lets only one thread execute Python bytecode at a time, which keeps the object model simple at the expense of multi-core parallelism, a trade the project is now unwinding.

Where it came from. Van Rossum had worked at CWI (Centrum Wiskunde & Informatica), the Dutch national research institute for mathematics and computer science, in the group that built the ABC language, which gave Python its indentation for statement grouping and its very high-level data types; exceptions came from Modula-3. He then joined the group building the Amoeba distributed operating system, which needed a better way to do system administration than C programs or Bourne shell scripts, and decided that an Amoeba-only language would be foolish: it had to be generally extensible. He began during the 1989 Christmas holidays and, after just over a year of work, posted it to USENET in February 1991. The first article about it, by van Rossum and Jelke de Boer in the CWI Quarterly of December 1991, was titled Interactively Testing Remote Servers Using the Python Programming Language, so testing things across a network is one of its oldest jobs. The name comes from Monty Python's Flying Circus, the BBC (British Broadcasting Corporation) comedy whose scripts he was reading; he wanted something short, unique and slightly mysterious.

From 2 to 3, and who decides. Python 3.0 was released on 3 December 2008 as a version incompatible with the 2.x line: the language was mostly the same, but built-in objects such as strings and dictionaries changed considerably, and text versus bytes is the change engineers still trip over. The developers announced in 2008 that Python 2 would end in 2015, extended that in 2014 to 2020, and sunset it on 1 January 2020, with no further fixes even for security problems; 2.7.18, released in April 2020, only bundled what had been fixed before that date. The Python Software Foundation (PSF), an independent non-profit, holds the copyright on versions 2.1 and newer. Van Rossum was Benevolent Dictator for Life (BDFL) until he stepped down in July 2018; the core developers then chose the steering council model of Python Enhancement Proposal (PEP) 8016, now codified in PEP 13, and the 2026 council is Barry Warsaw, Donghee Na, Pablo Galindo Salgado, Savannah Ostrowski and Thomas Wouters. Changes are proposed and recorded as PEPs, design documents that carry a specification and a rationale.

The release calendar. PEP 602, in force since Python 3.9, puts a feature release every twelve months, in October, after about 17 months of development. Each feature version then gets bugfix releases with installers roughly every other month, for two years from 3.13 on (18 months before), followed by source-only security releases until five years after its first release; long-term support releases were considered and rejected. Versions are numbered major.minor.micro, and the micro number counts bugfix releases. On 11 November 2026 the Developer's Guide listed 3.15 and 3.14 in bugfix, 3.13, 3.12 and 3.11 in security-only, and main as the future 3.16, due on 6 October 2027. Python 3.15.0 came out on 9 October 2026 with Hugo van Kemenade as release manager and is supported until about October 2031; 3.15.2 and 3.14.10 followed on 25 October 2026; and 3.10 reached end of life on 1 October 2026, which matters for any appliance or jump host still shipping it.

What changed lately. PEP 703 made the GIL optional in three phases: a free-threaded build arrived as experimental in 3.13 and became officially supported, though not the default, in 3.14 under PEP 779. Python 3.14 also brought template string literals, deferred evaluation of annotations, subinterpreters in the standard library and Zstandard compression. Python 3.15 added explicit lazy imports for faster start-up, frozendict and sentinel built-ins, unpacking in comprehensions, a stable ABI (application binary interface) for free-threaded builds and the Tachyon sampling profiler, and, under PEP 686, made UTF-8 (the 8-bit Unicode Transformation Format) the default encoding for files, standard streams and pipes. Most Unix systems already used UTF-8, so the change mostly affects Windows, where code that silently relied on the locale's encoding can now raise UnicodeError or produce mojibake.

Why engineers meet it. The standard library covers internet protocols such as HTTP (Hypertext Transfer Protocol), SMTP (Simple Mail Transfer Protocol) and IMAP (Internet Message Access Protocol), TCP/IP (Transmission Control Protocol and Internet Protocol) sockets and system calls, and the ipaddress module, added in 3.3, parses and computes IPv4 and IPv6 addresses and networks. Beyond it, the Python Package Index (PyPI) listed 939,716 projects and 10,170,044 releases on 11 November 2026, among them Netmiko, which describes itself as a multi-vendor library to simplify CLI (command-line interface) connections to network devices, and Paramiko, a pure-Python implementation of the SSHv2 (Secure Shell version 2) protocol. Packages are installed with pip, ideally into a virtual environment, a cooperatively isolated runtime that keeps one project's packages from disturbing another's. PEP 668 lets an operating system mark its own interpreter with an EXTERNALLY-MANAGED file, which is why pip on a recent Linux distribution refuses to install system-wide and points to a virtual environment instead.

Where it bites. The pickle module is not secure: malicious pickle data can execute arbitrary code while it is being loaded, so it must never read data from an untrusted source. The subprocess module does not call a shell unless asked; with shell=True, quoting whitespace and metacharacters against shell injection becomes the program's responsibility, which is how a hostname or interface description read from a device turns into a command. Dynamic typing defers many errors to run time, so a script that worked against one firmware's output can fail on the next, and dependency pins, a supported interpreter and output parsed into structures rather than matched as screen text are what keep automation alive across upgrades.

Also known as: Python 3, python3, Python language

Sources

← Back to P Back to the glossary