Print function and spaces

Josiah Carlson jcarlson at nospam.uci.edu
Sat Feb 7 14:36:44 EST 2004


>     Josiah> I could have sworn there was a function to disable/enable
>     Josiah> placing spaces between objects printed using the print
>     Josiah> statement.  I've looked all over, but I couldn't find it, so
>     Josiah> apparently it doesn't exist.
> 
> I think file().softspace is what you're looking for.

That is it.  Checking the docs, it doesn't seem to do what I thought it 
did, nor what the parent author had desired, and testing confirms this.

Ah well.
  - Josiah



More information about the Python-list mailing list