Why can't I set sys.ps1 to a unicode string?
rNOSPAMon at flownet.com
Thu Aug 12 19:36:37 CEST 2010
In article <i407mn$lah$1 at online.de>,
"Martin v. Loewis" <martin at v.loewis.de> wrote:
> > So... why does having a non-ascii character in sys.ps1 make the prompt
> > vanish?
> I can't pinpoint it to a specific line of code. Most likely, it tries
> to encode the prompt as ASCII before writing it to stdout. That fails,
> and it silently ignores the error.
> FWIW, this is fixed in Python 3.
Guess it's time to upgrade. :-)
More information about the Python-list