← Back to list

Double parenthesis on virtual environment shell prompt of Python 3.12.13

A reproducible but harmless bug

Sparisoma Viridi · 2026-05-24 00:51 · 0 claps · 1.5 min read
#installing-python #shell-prompt #unfixed-bug
Open on Medium ↗

Double parenthesis on virtual environment shell prompt of Python 3.12.13

A reproducible but harmless bug

Photo by Erwan Hesry on Unsplash

Photo by Erwan Hesry on Unsplash

After activated virtual environment created using Python 3.12 on MacOS it was observed that there is double parenthesis in the prompt (Viridi, 2026). Further discussion only produced sugggestions to overcome the harmless bug (GPT-5.5, 2026). Fortunately, the bug is documented (IterableTrucks, 2025) but not fixed since the version no longer allows bugfixes (StanFromIreland, 2025).

Python 3.9.6

This is the version provided by macOS Sequoia (Apple, 2024).

envs % source base/bin/activate
(base) envs % python - version
Python 3.9.6
(base) envs % deactivate
envs %

Python 3.12.13

This version is installed using Homebrew (Homebrew, 2026).

envs % source tf/bin/activate 
((tf) ) envs % python - version 
Python 3.12.13
((tf) ) envs % deactivate
envs %

Experiment

Two additional virtual environments are further created and the bug is reproducible and consistent.

envs % source test/bin/activate
((test) ) envs % python - version
Python 3.12.13
((test) ) envs % deactivate
envs %
envs % source test2/bin/activate
(test2) envs % python - version
Python 3.9.6
(test2) envs % deactivate
envs %

Processes of creating both virtual environments are not shown.

Summaries

  • Double parenthesis on the virtual environment prompt created using Python 3.12.13 is reported.
  • The bug is harmless and not fixed.
  • The bug is reproducible and consistent.

Refs


메타데이터
post_id
03e9be06a605
slug
double-parenthesis-on-virtual-environment-shell-prompt-of-python-3-12-13-03e9be06a605
url
https://medium.com/@6unpnp/double-parenthesis-on-virtual-environment-shell-prompt-of-python-3-12-13-03e9be06a605
canonical_url
https://medium.com/@6unpnp/double-parenthesis-on-virtual-environment-shell-prompt-of-python-3-12-13-03e9be06a605
author_url
https://medium.com/@6unpnp
status
ok
fetched_at
2026-06-10 10:12:36