sys.ps2 assignment has no effect

Emile van Sebille emile at fenx.com
Sun Sep 22 16:32:03 EDT 2002


Lance:
> print '...' works correctly, showing ...

I can't duplicate this on winxp with 2.1.3, 2.2.1 or current cvs.  All
behaves as it should.

If you start an interpreter session, import sys, and check
ord(sys.ps2[0]) you should get 46.  Anything else might indicate
modifications to pythonrun.c, where ps1 & 2 are initialized, or that the
prompt is getting changed before you see it.  Try starting python
with -S (skips importing site) to see if that makes a difference.  Also,
what does set show?  Watch out in particular for PYTHONSTARTUP that may
also be a source of a change like this.

HTH,

--

Emile van Sebille
emile at fenx.com

---------







More information about the Python-list mailing list