Suppressing banner on interactive startup?

Eric usenet at brainshell.invalid.org
Fri Aug 4 05:50:26 EDT 2006


On 27 July 2006, Tim Chase wrote:
> A couple of hopefully short (interrelated) questions:
>
> 1) is there a way to suppress the banner when starting Python 
> interactively?  [...]
>
> 2) is there a way to change the two prompts from ">>>" and "..." 
> to other options?  [...]

I noticed that the first part of your query was never answered.
To combine both of these, try the following (modified to taste):

python -ic 'import sys; sys.ps1="$ "; sys.ps2="> "'

- Eric



More information about the Python-list mailing list