[Python-3000] Low-hanging fruit: change interpreter prompt?

Guido van Rossum guido at python.org
Thu Nov 30 02:45:16 CET 2006


But the >>> prompt is Python's trademark! I always get a warm fuzzy
feeling when I see it, e.g. in a corner of a slide in a NASA
presentation.

Just set sys.ps1 = "-->" if you want something different. You can even
set PYTHONSTARTUP=<some_file_that_sets_sys.ps1> in your environment so
you won't hve to think about it.

--Guido

On 11/29/06, Giovanni Bajo <rasky at develer.com> wrote:
> Hello,
>
> it's a minor issue, but I was wondering if the interpreter prompt could be
> changed in Py3K. The current prompt is ">>>" which happens to match the
> standard character used for quotes in e-mails. As a result, intepreter
> sessions might look funky when copy & pasted inside mails.
>
> Given that showing interactive sessions in e-mails is *very* common and
> encouraged, it might be worthy to change the prompt to avoid this conflict.
> Something like "-->" or "---" or "%%%" or really *anything* else but sequences
> of ">" and "|" would do.
>
> Giovanni Bajo
>
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list