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 MinchinWeb
Recipients MinchinWeb, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-10-21.18:22:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571682177.17.0.615459893721.issue38552@roundup.psfhosted.org>
In-reply-to
Content
I have a Python startup file that colorizes my prompt. This worked on Python 3.7, but breaks on Python 3.8. I'm on Windows using Powershell 6.2.3, but `cmd` does the same.

Maybe related, but the colorization also failed on Python 3.7 if a virtual environment was active.

I am using `colorama` to provide the ANSI color codes.

The startup files:

```
import sys
import colorama

colorama.init()

_GREEN = colorama.Fore.GREEN
_YELLOW = colorama.Fore.YELLOW
_RESET = colorama.Style.RESET_ALL

print("setting prompt, {}, {}, {}.".format(_GREEN, _YELLOW, _RESET))
sys.ps1 = "{}>>> {}".format(_GREEN, _RESET)
sys.ps2 = "{}... {}".format(_YELLOW, _RESET)
print()
```
History
Date User Action Args
2019-10-21 18:22:57MinchinWebsetrecipients: + MinchinWeb, paul.moore, tim.golden, zach.ware, steve.dower
2019-10-21 18:22:57MinchinWebsetmessageid: <1571682177.17.0.615459893721.issue38552@roundup.psfhosted.org>
2019-10-21 18:22:57MinchinWeblinkissue38552 messages
2019-10-21 18:22:57MinchinWebcreate