Curious Minds

Clear answers to science and history questions

Why Is It Called Python Read It Here

· 5 min read · Science

The name 'Python' for the programming language was not inspired by the snake, but by the British comedy group Monty Python, creators of the surreal sketch comedy show *Monty Python's Flying Circus*. The language's creator, Guido van Rossum, was a fan of the group and named the project 'Python' as a tribute, seeking a short, unique, and slightly mysterious name while he was developing it in the late 1980s.

Background and Origins

  • Python was conceived in December 1989 at the Centrum Wiskunde & Informatica (CWI) in the Netherlands.
  • Guido van Rossum began work on Python as a successor to the ABC programming language, aiming to address ABC's limitations while preserving its readability and simplicity.
  • The first version of Python, released in 1991, was designed to support exception handling and interfacing with the Amoeba operating system.
  • Van Rossum wanted the language to be easy to use, readable, and accessible to both novice and experienced programmers.
The name 'Python' emerged during a time when van Rossum was looking for a name that was short, catchy, and slightly enigmatic. At the time, he was reading scripts from *Monty Python's Flying Circus* and found the name humorous and memorable. He later stated that choosing the name was partly whimsical, but it also helped distinguish the language from other more formally named systems.

Monty Python Influence

  • Monty Python's Flying Circus aired from 1969 to 1974 and became a cult favorite for its absurd humor, non-sequiturs, and innovative sketches.
  • References to Monty Python are embedded throughout Python’s documentation and community culture.
  • Examples include the use of 'spam', 'eggs', and 'bacon' as placeholder variable names—nodding to the famous 'Spam' sketch.
  • The official Python tutorial includes jokes and references, such as naming a function 'parrot' after the 'Dead Parrot' sketch.
This cultural homage extends beyond just the name. The Python community often uses Monty Python-themed terminology, such as referring to the Python Software Foundation’s servers as 'Spam' and 'Eggs'. Even Python conferences and events sometimes include themed sessions or humor drawn from the sketches.

How Python Was Developed

Python evolved from a desire to create a language that emphasized code readability and programmer productivity. Key design decisions included:
  1. Adopting significant indentation (whitespace) to delimit code blocks, enhancing visual clarity.
  2. Incorporating dynamic typing and automatic memory management, reducing boilerplate code.
  3. Supporting multiple programming paradigms: procedural, object-oriented, and functional programming.
  4. Providing a large standard library that covers everything from file handling to web protocols.
Van Rossum released Python 0.9.0 in 1991, followed by incremental updates. Python 2.0 arrived in 2000, introducing features like list comprehensions and garbage collection. Python 3.0, released in 2008, was a major overhaul designed to fix design flaws, though it broke backward compatibility with Python 2.

Why the Name Matters

The name 'Python' has played a subtle but significant role in the language's adoption and community culture. It:
  • Conveys a sense of approachability and fun, helping to lower the intimidation barrier for new learners.
  • Distinguishes the language from more formally named systems like Java or C++.
  • Encourages a playful, collaborative community ethos, evident in documentation, tutorials, and forums.
  • Makes the language more memorable and search-friendly despite being a common word.
Despite initial concerns that the name might be confused with the snake, especially in search engines, the Python community has embraced it fully. Over time, 'Python' has become strongly associated with the programming language in technical contexts.

Common Misconceptions

  • Misconception: Python is named after the snake because of its logo. While the Python logo features two intertwined snakes, this was adopted after the language was named. The visual identity came later and reflects the name, not the origin.
  • Misconception: The name implies the language is slow, like a snake. This is a false association. Python's performance depends on implementation (e.g., CPython, PyPy) and use case, not its name.
  • Misconception: Python was always meant to be a beginner language. While it is beginner-friendly, it was designed for general-purpose use and is widely used in advanced applications like machine learning and data analysis.
  • Misconception: The name is unprofessional. On the contrary, the whimsical name has helped build a strong, inclusive community and contributed to its widespread educational use.

Comparisons with Other Languages

Python differs from other languages in both philosophy and naming:
  • Java: Named after coffee, reflecting a desire for energy and ubiquity. More rigid syntax and compile-time typing.
  • JavaScript: Despite the name, not related to Java. Named for marketing synergy during its 1995 release.
  • Ruby: Named after a gemstone, following Perl (named after a gem). Emphasizes programmer happiness, similar to Python’s readability focus.
  • Perl: Named as a recursive acronym (Practical Extraction and Report Language), with a more complex, expressive syntax compared to Python’s simplicity.
Python’s naming stands out for its cultural reference rather than technical or metaphorical symbolism.

Frequently Asked Questions

Is Python named after the snake?

No, Python is not named after the snake. It was named after Monty Python's Flying Circus, the British comedy group. The snake imagery in the logo came later as a visual pun on the name.

Who created Python and why?

Guido van Rossum created Python in the late 1980s at CWI in the Netherlands. He wanted a language that was easy to read, simple to use, and more productive than existing options like ABC, while supporting modern programming features.

Does the name affect how the language is used?

Indirectly, yes. The playful name contributes to a welcoming community and educational focus. It signals that the language values clarity and accessibility, which has helped its adoption in schools and beginner courses.

Why do people think Python is slow because of the name?

This is a misconception based on associating 'Python' with the slow-moving snake. In reality, performance depends on implementation and optimization, not the name. Some versions, like PyPy, are significantly faster than the standard CPython.

Is there a connection between Monty Python and Python programming?

Yes, the only connection is the naming inspiration. Guido van Rossum was a fan of the show and named the language as a joke. The humor and absurdity of Monty Python influenced the tone of Python’s documentation and community culture.

Was Python always popular?

No, Python grew in popularity gradually. It gained significant traction in the 2000s and 2010s due to its use in web development, scientific computing, and machine learning. Its readability and extensive libraries contributed to its rise.
In this article
  1. Background and Origins
  2. Monty Python Influence
  3. How Python Was Developed
  4. Why the Name Matters
  5. Common Misconceptions
  6. Comparisons with Other Languages
  7. Frequently Asked Questions