Python is named after the British comedy group Monty Python, not the snake. The language’s creator, Guido van Rossum, was a fan of the group’s television series Monty Python’s Flying Circus and chose the name as a tribute while developing the language in the late 1980s.
Background of Python’s Creation
- Python was created by Dutch programmer Guido van Rossum in December 1989 at the Centrum Wiskunde & Informatica (CWI) in the Netherlands.
- Van Rossum began the project during the Christmas holidays as a successor to the ABC programming language, aiming to address ABC’s limitations while preserving its readability and ease of use.
- The first version, Python 0.9.0, was released in February 1991 and included features like exception handling, functions, and core data types such as lists, tuples, and dictionaries.
- Python was designed with an emphasis on code readability, simplicity, and a philosophy that favored explicit, unambiguous syntax.
Why Monty Python Influenced the Name
Guido van Rossum has openly acknowledged his admiration for Monty Python’s Flying Circus, a surreal British comedy show that aired from 1969 to 1974. The show’s absurdist humor, wordplay, and unconventional structure resonated with van Rossum during his formative years.
- The name “Python” was not meant to reflect the language’s function or structure but served as an inside joke and a personal nod to creativity and irreverence.
- Many early Python documentation examples and references include Monty Python-themed jokes, such as references to the “Spam” sketch (which indirectly inspired the term “spam” for unsolicited email).
- The official Python documentation once included a reference to the “Holy Grail” and “Dead Parrot” sketches, and the Python Package Index (PyPI) was humorously registered under the domain name “pypi.org” rather than a more technical alternative.
Common Misconceptions About the Name
Many assume Python is named after the snake due to its logo, which features two intertwined snakes. However, this visual branding came after the name was chosen and was adopted to create a memorable identity, not to reflect the origin of the name.
- The snake imagery was introduced later by designers to make the language more visually distinctive, especially in logos and educational materials.
- Despite the reptilian association, van Rossum has emphasized that the name was never intended to evoke animals or predatory behavior.
- Some speculate that the name reflects the language’s ability to “swallow” other languages or systems, but this is a post-hoc interpretation with no basis in van Rossum’s original intent.
How Python’s Naming Reflects Its Philosophy
The choice of a humorous, non-technical name aligns with Python’s broader design philosophy, summarized in the “Zen of Python” (PEP 20), a collection of guiding principles for writing computer programs in Python.
- “Beautiful is better than ugly.”
- “Explicit is better than implicit.”
- “Readability counts.”
- “If the implementation is hard to explain, it’s a bad idea.”
Impact of the Name on Adoption and Culture
The name “Python” has contributed to the language’s welcoming and inclusive community culture. The humorous origin lowers the barrier to entry for beginners and fosters a sense of playfulness in learning and development.
- Python conferences often have playful names, such as PyCon, PyData, and EuroPython, and feature themed talks and costumes.
- The community frequently uses Monty Python references in tutorials, memes, and documentation, reinforcing a shared identity.
- The name’s uniqueness makes it highly searchable, which has aided discoverability and learning resources online.
Frequently Asked Questions
Is Python named after the snake?
No, Python is not named after the snake. The language’s creator, Guido van Rossum, named it after the British comedy group Monty Python as a personal tribute. The snake imagery in the logo was added later for branding purposes.
Why did Guido van Rossum choose the name Python?
Van Rossum chose the name because he was reading scripts from Monty Python’s Flying Circus at the time and wanted a name that was short, unique, and slightly mysterious. He has stated that he wanted the language to have a fun and approachable identity.
Does the Python logo have anything to do with Monty Python?
No, the Python logo, which features two snakes, does not reference Monty Python the comedy group. The snake design was chosen for visual appeal and symbolism related to programming, not comedy. The connection to the TV show is purely in the name and community culture.
Are there other programming languages named after comedy shows?
Python is unique in this regard. Most programming languages are named after people, mathematical concepts, or acronyms. While some esoteric languages (like Ook! or Brainfuck) have humorous elements, none are directly named after comedy troupes like Monty Python.
Did the name help Python become popular?
The name likely contributed to Python’s accessibility and memorability. A fun, non-technical name may have made the language seem less intimidating to beginners, and its uniqueness aids searchability. However, its popularity is primarily due to its design, versatility, and strong community support.
Is the name Python trademarked?
Yes, the name Python and the Python logo are trademarked by the Python Software Foundation (PSF), a non-profit organization that oversees the development and promotion of the language. The PSF ensures that the name is used appropriately in commercial and educational contexts.