Python
termKept 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
- Python documentation 3.15.2, General Python FAQ (read 2026-11-11): an interpreted, interactive, object-oriented language, extensible in C or C++; the PSF holds the copyright on 2.1 and newer; van Rossum's account of ABC, Modula-3, the Amoeba group at CWI and the Bourne shell, the 1989 Christmas holidays and the USENET post of February 1991; the first article, CWI Quarterly, December 1991, on interactively testing remote servers; the name from Monty Python's Flying Circus; a large standard library covering internet protocols and TCP/IP sockets; A.B.C version numbers
- Python Developer's Guide, Status of Python versions (read 2026-11-11): main is the future 3.16 (PEP 826, first release 2027-10-06); 3.15 and 3.14 in bugfix, 3.13 to 3.11 in security; 3.15 first released 2026-10-09, end of life 2031-10; 3.10 end of life 2026-10-01; two years of bugfix (18 months before 3.13), then security fixes only
- PEP 602, Annual Release Cycle for Python (Łukasz Langa), created 4 June 2019, from Python 3.9 (read 2026-11-11): a feature release every twelve months, in October; 17 months of development; 24 months of bugfix releases about every other month, then 36 months of source-only security releases; long-term support releases rejected
- Python Software Foundation, python.org Downloads (read 2026-11-11): Python 3.15.0 released 9 October 2026; 3.15.2 and 3.14.10 released 25 October 2026
- PEP 790, Python 3.15 Release Schedule (read 2026-11-11): release manager Hugo van Kemenade; 3.15.0 final Friday 2026-10-09; bugfix updates for two years, then source-only security updates until about October 2031
- Python documentation 3.15, What's New In Python 3.15 (read 2026-11-11): lazy imports (PEP 810), frozendict and sentinel builtins, UTF-8 as the default encoding (PEP 686), unpacking in comprehensions, a stable ABI for free-threaded builds, the Tachyon sampling profiler
- Python documentation, What's New In Python 3.14 (read 2026-11-11): template string literals, deferred evaluation of annotations, subinterpreters in the standard library, compression.zstd; free-threaded Python officially supported (PEP 779)
- PEP 686, Make UTF-8 mode default, created 18 March 2022, Python 3.15, Final (read 2026-11-11): UTF-8 for the default encoding of files, stdio and pipes; mostly affects Windows users; code depending on the default encoding may see UnicodeError, mojibake or silent data corruption
- PEP 779, Criteria for supported status for free-threaded Python, Final, Python 3.14 (read 2026-11-11): the three phases of PEP 703, making the global interpreter lock optional; phase I experimental from 3.13, phase II officially supported but optional
- PEP 13, Python Language Governance (read 2026-11-11): van Rossum BDFL from inception until July 2018; PEP 8016 chosen as the new model; the 2026 steering council Barry Warsaw, Donghee Na, Pablo Galindo Salgado, Savannah Ostrowski and Thomas Wouters
- Python Software Foundation, Sunsetting Python 2 (read 2026-11-11): sunset on 1 January 2020, no further improvements even for security problems; announced in 2008 for 2015 and extended in 2014 to 2020; 2.7.18 released April 2020 with the remaining fixes
- python.org, Python 3.0 Release (read 2026-11-11): 3.0 final released on 3 December 2008; a new version incompatible with the 2.x line, with built-in objects such as dictionaries and strings changed considerably
- Python documentation, Glossary (read 2026-11-11): CPython the canonical implementation, distinct from Jython or IronPython; bytecode cached in .pyc files and run on a virtual machine; the global interpreter lock; PEP; virtual environment
- PEP 668, Marking Python base environments as externally managed, created 18 May 2021, Final (read 2026-11-11): conflicts between OS package managers and pip; the EXTERNALLY-MANAGED marker file; distributions guiding users to virtual environments
- Python documentation, pickle, Python object serialization (read 2026-11-11): the pickle module is not secure; malicious pickle data can execute arbitrary code during unpickling; never unpickle data from an untrusted source
- Python documentation, subprocess, Security Considerations (read 2026-11-11): the module will not implicitly call a system shell; with shell=True it is the application's responsibility to quote whitespace and metacharacters to avoid shell injection
- Python documentation, ipaddress, IPv4/IPv6 manipulation library (read 2026-11-11): added in version 3.3; address, network and interface objects for IPv4 and IPv6
- PyPI home page (read 2026-11-11): 939,716 projects, 10,170,044 releases and 1,141,363 users
- PyPI, netmiko 4.8.0, released 21 September 2026 (read 2026-11-11): a multi-vendor library to simplify CLI connections to network devices; installable with Paramiko 4 compatibility
- PyPI, paramiko 5.1.0, released 18 October 2026 (read 2026-11-11): a pure-Python implementation of the SSHv2 protocol
- CWI, About (read 2026-11-11): Centrum Wiskunde & Informatica, founded in 1946, the national research institute for mathematics and computer science in the Netherlands