".>>>" is a good idea! (OT, was: Re: do you master list comprehensions?)

Steven Bethard steven.bethard at gmail.com
Thu Dec 16 22:36:37 CET 2004


Kent Johnson wrote:
> You can do the same thing using a PYTHONSTARTUP file - see 
> http://docs.python.org/tut/node4.html#SECTION004240000000000000000
> 
> You can change the prompts with
> import sys
> sys.ps1 = ' >>> '
> sys.ps2 = ' ... '

Very cool.  I didn't know about this.  Does anyone know how to make it 
work with Pythonwin[1]?  (Obviously, I can type the above in manually 
every time, but I'd much rather have Pythonwin do this automatically for 
me.)

Steve

[1] I'd do my example code at the command prompt, but I can't live 
without copy-paste. ;)



More information about the Python-list mailing list