On Fri, 18 Jul 2008 23:04:06 +0200, TP wrote:

> All my problem is in the title.
> If I try:
> 
> $ python -c 'print "foo",'
> 
> It does not change anything, surely because the line return is added
> by "python -c".

It is added by the interpreter at exit time.  The interpreter tries to be
smart here deciding for you that the last printed line before program exit
should end in a newline.  Use `sys.write()` instead of ``print``.

Ciao,
        Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to