Skip to content

More easter eggs#16

Open
j4ckofalltrades wants to merge 3 commits intoOrkoHunter:masterfrom
j4ckofalltrades:more-easter-eggs
Open

More easter eggs#16
j4ckofalltrades wants to merge 3 commits intoOrkoHunter:masterfrom
j4ckofalltrades:more-easter-eggs

Conversation

@j4ckofalltrades
Copy link

Document three more Python Easter eggs:

#16 — Breakfast of Champions
The phello package is a frozen CPython module used for testing. Importing
phello.spam and calling .main() prints "Hello World!" — a nod to Monty
Python's SPAM sketch.

#17 — Unreachable State
A macro in CPython's C source that marks code paths that should never execute.
The RANDALL_WAS_HERE build flag reveals humorous error messages written by
(and referencing) xkcd author Randall Munroe, alongside an equally self-aware
Py_DEBUG message.

#18 — 𝜋thon
In Python 3.14 virtual environments, typing 𝜋thon (U+1D70B — a valid Unicode
identifier) launches Python. A clever play on the 3.14 (pi) version number.

Add "Breakfast of Champions" entry documenting the __phello__.spam,
__phello__.ham, __phello__.ham.eggs frozen modules references
Monty Python's SPAM sketch.
Add "Unreachable State" entry documenting some funny error messages
in CPython's Py_UNREACHABLE() macro, including the `RANDALL_WAS_HERE`
build flag referencing xkcd author Randall Munroe.
Typing 𝜋thon (U+1D70B, a valid Unicode identifier) inside a
Python 3.14 virtual environment launches Python. Only works
with CPython's own venv e.g., venvs created by uv does not
support it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants