gh-119535: Support 𝜋thon in Python 3.14 venvs by foreignmeloman · Pull Request #125035 · python/cpython

4 min read Original article ↗
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

@foreignmeloman

ArtyomVancyan, thesamesam, Wulian233, armeni, mkdotam, gorkettsyan, smbarseghyan, RubenBejanyan, DavidIsrayelyan, nineteendo, and 105 more reacted with thumbs up emoji jun66j5 reacted with thumbs down emoji zettelin, PositionZer0, gnaggnoyil, sukhmel, quazar-omega, aiudirog, ImadSaddik, onkoe, and VioletShards reacted with laugh emoji sergiisukhanov, kacpekwasny, ogamingSCV, ErrorNoInternet, DylPorter, Catoverflow, nibrobb, zettelin, abhigit-saha, chingiztob, and 6 more reacted with heart emoji

@ghost

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@skirpichev

I would guess, it's already too late;) And sounds wrongly: "Pi", not "Py".

@hugovk

It's not too late.

In English, the py of python and pi are pronounced the same: /paɪ/ in IPA.

AA-Turner, mherkhachatryan, Abdoulrasheed, NotAsea, webknjaz, sid3windr, tuokri, jaum20, MovingJu, CesarAGG, and 14 more reacted with thumbs up emoji foreignmeloman, Temanor, s0niave, HitogiDev, stevenstonie, and sukhmel reacted with hooray emoji

@thatbirdguythatuknownot

Also doesn't reveal the easter egg to terminal autocomplete (as far as i know autocomplete goes)

@foreignmeloman

Also doesn't reveal the easter egg to terminal autocomplete (as far as i know autocomplete goes)

Was it intended to show during the tab completion?

Eclips4

suffixes = ['python', 'python3', f'python3.{sys.version_info[1]}']
if sys.version_info[:2] == (3, 14):
suffixes.append('python𝜋')
suffixes.append('𝜋thon')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we have both of them? 😄

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should decide on one option. An easter egg should be unique, otherwise it'll loose its punch.

mscuthbert, Shyxuu2, jurczewski, Deltaspace0, mekladious, enchart, s0niave, etiennelndr, ateeq-mughal, stevenstonie, and exu-g reacted with thumbs up emoji

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I suggest creating the concept of an easter omlet)

hugovk, Eclips4, foreignmeloman, ZeroIntensity, fohrloop, nineteendo, samhaswon, hauntsaninja, mherkhachatryan, itamaro, and 51 more reacted with laugh emoji

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both would be better. 𝜋thon is the best of course, but python𝜋 is discoverable via tab-completion.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An easter egg should be also hidden

Both would be better. 𝜋thon is the best of course, but python𝜋 is discoverable via tab-completion.

hauntsaninja

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hugo asked me if I have an opinion on this. I don't have a strong opinion, but for whatever it's worth I chose python𝜋 in the original PR because:

  • I think it's much easier to use, since your tab completion is narrowed to like four options. Especially so after the switch from U+03c0 to U+1d70b (I can type U+03c0 on my keyboard pretty easily but not U+1d70b)
  • Subjective, but to me some of the joke comes from the substitution of 3.14 in the "python3.14" file that venv creates. It's clearer that it's specific to this specific version of Python

@hugovk

Okay, let's go for this one :)

Remember, everyone: shhh!

adamchainz, lumilla, joveice, ewjoachim, mikavilpas, falcotinnunculus, tigerhawkvok, lu0, mitelg, samyilin, and 55 more reacted with laugh emoji eMPee584, mindaugasw, HitogiDev, and sukhmel reacted with rocket emoji T-Dynamos, HitogiDev, Catoverflow, SergiusGit, and ferre111 reacted with eyes emoji

@hugovk hugovk changed the title gh-119535: 𝜋thon looks and sounds way cooler gh-119535: Support 𝜋thon in Python 3.14 venvs

Oct 15, 2024

hugovk added a commit to hugovk/cpython that referenced this pull request

May 15, 2025

Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request

Jul 12, 2025

taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request

Aug 4, 2025

@secolive

I'm having oooh such a blast with this easter egg :
[sender] cannot convert filename: libexec/bin/𝜋thon (Illegal byte sequence)

Reviewers

@picnixz picnixz picnixz left review comments

@hauntsaninja hauntsaninja hauntsaninja left review comments

@Eclips4 Eclips4 Eclips4 left review comments

@vsajip vsajip Awaiting requested review from vsajip vsajip is a code owner

+2 more reviewers

@doekman doekman doekman left review comments

Reviewers whose approvals may not affect merge requirements

Labels