Zum Inhalt springen

Python and the Flying Circus: How a Comedy Show Named a Programming Language

Zusammenfassung

Python is named after Monty Python’s Flying Circus, the BBC sketch comedy series (1969–1974), not after the snake. Guido van Rossum was reading the published scripts of the show during Christmas 1989 when he began implementing the language. He wanted a name that was short, unique, slightly mysterious — and slightly irreverent. The choice set a tone that persisted in Python’s documentation, community, and conventions for decades: technical seriousness delivered with conspicuous wit.

The Christmas Project

In December 1989, Guido van Rossum was working at Centrum Wiskunde & Informatica (CWI) in Amsterdam. The office was closed for the Christmas holiday, and he was looking for a programming project to keep himself occupied. He had been thinking for some time about a successor to ABC — a teaching language he had worked on at CWI that had good ideas about readability and simplicity but was limited by its closed implementation.

Van Rossum wanted a language that could do what ABC did well (readable, interactive, high-level) while fixing ABC’s weaknesses: no exception handling, limited extensibility, and a closed interpreter. He started writing Python over the holiday break, intending it as a personal project. He needed a name.

The BBC published the scripts of Monty Python’s Flying Circus in paperback form, and Van Rossum owned the books. He was reading them during the same period. He chose “Python” because the name was short, had no prior association with a serious computing project, was slightly silly, and struck him as the right register for a language he was building partly for fun. He later noted that the name was entirely unrelated to snakes.

The Monty Python Influence on Python Culture

The naming was not cosmetic. The irreverence of the name established a cultural register that the Python community consciously maintained.

Python’s official placeholder variable names use spam, ham, and eggs — from the Monty Python sketch in which a café offers a menu entirely composed of spam. Python’s documentation uses these names where other languages would use foo, bar, and baz. The practice is so established that a Python programmer encountering spam = [] in an example immediately understands it is a placeholder, not a meaningful variable name.

The Python standard library module for the interactive interpreter is called IDLE — a reference to Eric Idle of Monty Python, confirmed as intentional by Van Rossum. The testing module was named unittest, but the community humor around testing uses Monty Python references extensively.

The phrase “Pythonic” — meaning code that follows Python’s idiomatic conventions — is itself partly a product of this culture: it implies that there is a right way to do things that is not merely correct but elegant and somewhat opinionated, which mirrors the sensibility of a comedy team that had strong views about what was and was not funny.

Python’s Rise from Holiday Project to Lingua Franca

Python 0.9.0 was released to the Usenet group alt.sources in February 1991. Guido van Rossum maintained the language as its “Benevolent Dictator For Life” (BDFL) — a title that was itself a Python-style joke — until 2018, when he stepped back from the role after a contentious debate over the walrus operator (:=).

The language’s rise from a Christmas side project to the dominant language of scientific computing, AI research, and introductory programming courses is one of the most improbable trajectories in software history. Python was not the fastest language, not the most academically rigorous, and not designed with any particular application domain in mind. Its success came from readability, a large standard library, and an ecosystem that expanded to fill every niche.

The evolution of programming languages is full of languages that were built with serious intent and became niche tools, and languages built as jokes or experiments that became unexpectedly central. Python’s position in AI and data science owes partly to NumPy, SciPy, and Pandas — libraries built by domain scientists who valued Python’s interactivity over performance — and partly to the accident of naming that established a culture of approachability from the first day.

The Name the Snake Stole

The snake association was not Van Rossum’s intent, but it proved impossible to resist. Python documentation uses snake imagery; the Python logo is two intertwined snakes; the package installer is named pip (not a snake reference, but the ecosystem absorbed snakes anyway through packages like Anaconda, Cobra, Boa, and countless others). The Monty Python connection is real and documented, but the snake won the popular imagination.


📚 Sources