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 steve.dower
Recipients brett.cannon, d3r3kk, donovick, paul.moore, steve.dower, tim.golden, vinay.sajip, zach.ware
Date 2019-07-29.22:44:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I just chatted with Derek about this, and while we identified some potential regressions (previously we were injecting str(prompt) into Activate.ps1, and now we're showing repr(prompt)), I don't think they're widely used.

For example, if you previously did:

>>> py -m venv --prompt "my`nprompt" env

You'd get 'my\nprompt' in pyvenv.cfg, but an actual newline in your printed prompt (note that passing "my\nprompt" in the command doesn't do this). There are likely other things that will be escaped in the configuration that previously would have been fine with the direct substitution.

I have no real sense of how widely used these are. They are definitely less popular than machines that are configured to require code-signed Powershell scripts, so we still come out ahead. It's probably easy to handle some of the more common escapes, if we know what they are, but I doubt we're going to reimplement full Python string parsing in a Powershell script.

Vinay - any thoughts here? For me, I think get it out in 3.8.0b4 and see how it fares.
Date User Action Args
2019-07-29 22:44:34steve.dowersetrecipients: + steve.dower, brett.cannon, paul.moore, vinay.sajip, tim.golden, zach.ware, d3r3kk, donovick
2019-07-29 22:44:34steve.dowersetmessageid: <>
2019-07-29 22:44:34steve.dowerlinkissue37354 messages
2019-07-29 22:44:34steve.dowercreate