[Python-3000] Low-hanging fruit: change interpreter prompt?
Giovanni Bajo
rasky at develer.com
Thu Nov 30 09:11:44 CET 2006
Guido van Rossum wrote:
> 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.
In fact, there would be another reason to change the prompt in Py3k: to
identify Py3k snippets and tell them from Python 2.x snippets. When people
will really start using Py3k, and will start sending mails with interpreter
sessions in them, or publish blog entries or whatnot, I think it would be
useful if you could immediately, no-brainy tell whether it's Python 2.x or Py3k.
> 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.
The problem is not *my* environment, but when I read mails posted by others.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
More information about the Python-3000
mailing list