Again: Please hear my plea: print without softspace

Paul Rubin http
Fri Mar 5 15:48:37 EST 2004


David MacQuigg <dmq at gain.com> writes:
> >In any case, I think the one-liner posted satisfies nearly all of the
> >requirements.  
> >
> >import sys
> >def pr(*args): sys.stdout.write(''.join([str(i) for i in args]))

"import sys" makes it a two-liner, I think.



More information about the Python-list mailing list