Repository navigation
gh-119535: Support 𝜋thon in Python 3.14 venvs - #125035
Conversation
|
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 |
|
I would guess, it's already too late;) And sounds wrongly: "Pi", not "Py". |
|
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? |
| suffixes = ['python', 'python3', f'python3.{sys.version_info[1]}'] | ||
| if sys.version_info[:2] == (3, 14): | ||
| suffixes.append('python𝜋') | ||
| suffixes.append('𝜋thon') |
There was a problem hiding this comment.
Why can't we have both of them? 😄
There was a problem hiding this comment.
I think we should decide on one option. An easter egg should be unique, otherwise it'll loose its punch.
There was a problem hiding this comment.
(I suggest creating the concept of an easter omlet)
There was a problem hiding this comment.
Both would be better. 𝜋thon is the best of course, but python𝜋 is discoverable via tab-completion.
There was a problem hiding this comment.
An easter egg should be also hidden
Both would be better.
𝜋thonis the best of course, butpython𝜋is discoverable via tab-completion.
There was a problem hiding this comment.
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
|
Okay, let's go for this one :) Remember, everyone: shhh! |
𝜋thon looks and sounds way cooler* Revert "pythongh-119535: Support 𝜋thon in Python 3.14 venvs (python#125035)" This reverts commit fcef3fc. * Revert "pythongh-119535: python𝜋 (python#119536)" This reverts commit 3fc673e.
* Revert "pythongh-119535: Support 𝜋thon in Python 3.14 venvs (python#125035)" This reverts commit fcef3fc. * Revert "pythongh-119535: python𝜋 (python#119536)" This reverts commit 3fc673e.
|
I'm having oooh such a blast with this easter egg : |
|
For posterity – why couldn't we just use the normal 2-byte-encoded pi? The current one (in italics) requires 4 bytes. Learned it the hard way when users could create 3.14 venvs, but couldn't delete them ("directory not empty"). It appears that there are certain storage systems which typically (when you mount them via NFS4 and set the volume language to, *.utf-8 instead of explicitly asking for utf8mb4) allow for up to 3-byte characters in filenames... They can create such files and manipulate them if referenced directly, but they are unlistable. |
|
Sounds like a bug in the storage system?
The symlink is only in 3.14 venvs and was removed in 3.15. |
|
From what I've read, it's more like a weird feature (motivated by performance if I understand it correctly) than a bug, as it's well documented (but still not obvious if you're not looking for it). And yes – I agree that calling something "UTF-8" while it's not a full UTF-8 isn't the best practice by the devs of the storage system (although I think MySQL also makes similar distinction between subsets of the full UTF-8). My point is that there are always bound to be such exotic cases here and there and the potential of breaking such systems should be taken into consideration when planning a joke (a clever one, I won't argue!) . Also, maybe I'm a bit old-fashioned, but using emojis and 4-byte characters in filenames seems a bit outlandish for me, and asking for trouble. Meanwhile, if the joke could be perfectly achieved by a more failure-proof, 2-byte character, why not use it instead? I know it's probably a bit too late to change this one and I'm not writing this to blame anyone, but – as noted – let's consider it the next time. :-) |
pythonπin Python 3.14 venv's #119535