You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
venv module creates unexpected symlink with non-ASCII name (𝜋thon) #155595
venv.EnvBuilder.setup_python() in Lib/venv/__init__.py includes a symlink
suffix that uses a Unicode mathematical italic pi character instead of the
letter "p":
suffixes.append('𝜋thon')
As a result, every virtual environment created with python3 -m venv gets an
extra symlink named 𝜋thon (U+1D745 MATHEMATICAL ITALIC SMALL PI + "thon"),
pointing at the real python3 binary, alongside the normal python / python3 / python3.X symlinks.
Minimal reproduction:
```python
no Python code needed — reproduces from the shell:
python3 -m venv testenv
ls -la testenv/bin/ | grep -P '[^\x00-\x7F]'
-> shows: 𝜋thon -> python3
```
Expected: only the standard ASCII-named symlinks (python, python3, python3.X) should be created in a venv's bin/ directory.
Confirmed this originates from the venv module itself, not from pip or any
post-install step — it appears in a freshly created venv before any packages
are installed.
my apologies, I just got stuck while learning machine learning, I spun up jupyter notebook in vscode as an extension, then on trying to create a virtual environment I got stuck, sorry.
In one of my environment, this "an easter egg " results just this:
it suspend emacs for a while searching glyph for 'MATHEMATICAL ITALIC SMALL PI' without any success. It is a just waste of time. How about use 'GREEK SMALL LETTER PI', instead.
I think this is a reason enough to change this or even drop it. I like easter eggs but only in video games and I believe we are actually harming people more than necessary.
Activity
gvanrossum commentedon Aug 11, 2026
You don't describe any actual harm from this. It's clearly an easter egg -- what's wrong with that?
StanFromIreland commentedon Aug 12, 2026
It seems LLMs don’t get the pun :-/
BrianKimurgor commentedon Aug 12, 2026
my apologies, I just got stuck while learning machine learning, I spun up jupyter notebook in vscode as an extension, then on trying to create a virtual environment I got stuck, sorry.
noboruatkek commentedon Sep 17, 2026
In one of my environment, this "an easter egg " results just this:
it suspend emacs for a while searching glyph for 'MATHEMATICAL ITALIC SMALL PI' without any success. It is a just waste of time. How about use 'GREEK SMALL LETTER PI', instead.
picnixz commentedon Sep 20, 2026
I think this is a reason enough to change this or even drop it. I like easter eggs but only in video games and I believe we are actually harming people more than necessary.
How long does the hang take though?
cc @hugovk
StanFromIreland commentedon Sep 20, 2026
For reference, we have already gated it in some cases, as it broke on filesystems that didn't support the character: 91d71ac