This seems like a trick:
C:\Users\Bartek>python -i -c "" >>> print "I ♥ Python!" I ♥ Python! >>> exit() C:\Users\Bartek>
The -i option is described as:
-i: check interactively after running the script; forces quickly if stdin is not a terminal; also PYTHONINSPECT = x
So, while you are at the terminal, it has no reservations.
ipython has a simple option --no-banner :
C:\Users\Bartek>ipython --no-banner In [1]: print "I <3 Python!" I <3 Python! In [2]: exit() C:\Users\Bartek>
It doesn't seem to support Unicode, though;)
source share