This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cheryl.sabella
Recipients brett.cannon, cheryl.sabella, steve.dower, vinay.sajip
Date 2019-01-10.13:08:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Currently, the prompt is enclosed in parentheses, both in the venv and when storing:

PS N:\projects\cpython> python -m venv testvenv --prompt="  prompt with spaces   "
Running Release|Win32 interpreter...
PS N:\projects\cpython> .\testvenv\Scripts\activate
(  prompt with spaces   ) PS N:\projects\cpython>

Contents of pyvenv.cfg:
home = N:\projects\cpython\PCbuild\win32
include-system-site-packages = false
version = 3.8.0
prompt = (  prompt with spaces   ) 

I also tested using quotes in the prompt, which lead to opening issue 35667.  

Here's a prompt that itself has parentheses:
PS N:\projects\cpython> python -m venv testvenv --prompt="(my prompt)"
Running Release|Win32 interpreter...
PS N:\projects\cpython> .\testvenv\Scripts\activate
((my prompt)) PS N:\projects\cpython>

It seemed to me that the parenthesis would allow the retrieval of both the original prompt definition and how it looked in display.  Maybe my tests didn't demonstrate this clearly?
Date User Action Args
2019-01-10 13:08:53cheryl.sabellasetrecipients: + cheryl.sabella, brett.cannon, vinay.sajip, steve.dower
2019-01-10 13:08:51cheryl.sabellasetmessageid: <>
2019-01-10 13:08:51cheryl.sabellalinkissue35661 messages
2019-01-10 13:08:51cheryl.sabellacreate