A C-like if statement

Kent Johnson kent at kentsjohnson.com
Fri Feb 24 06:45:41 EST 2006


Steven D'Aprano wrote:
> Now that's a Python wart: using >>> for the prompt for interactive
> sessions. It makes it ambiguous when posting code in email or newsgroups,
> especially once the code gets quoted a few times.

So change it. My pythonstartup.py contains:

import sys
sys.ps1 = ' >>> '
sys.ps2 = ' ... '

Kent



More information about the Python-list mailing list