Again: Please hear my plea: print without softspace
Mel Wilson
mwilson at the-wire.com
Thu Mar 4 13:58:32 EST 2004
In article <f0oe40hujm0rqcci2fgrhc445qgjs9anfe at 4ax.com>,
David MacQuigg <dmq at gain.com> wrote:
>What I think is going on "under the hood" with the print statement is:
>
>def print(*args):
> for arg in args:
> sys.stdout.write(arg)
^^^
Ahem, (str(arg))
> sys.stdout.write(' ')
> sys.stdout.write('\n')
>
>To make a variation on this, just add or delete the extra formatting.
>Of course, we need to call it something besides the keyword 'print'.
Regards. Mel.
More information about the Python-list
mailing list