We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

file.softspace

softspace

Boolean that indicates whether a space character needs to be printed before another value when using the print statement.

Classes that are trying to simulate a file object should also have a writable file.softspace attribute, which should be initialized to zero. This will be automatic for most classes implemented in Python (care may be needed for objects that override attribute access); types implemented in C will have to provide a writable file.softspace attribute.

Note: This attribute is not used to control the print statement, but to allow the implementation of print to keep track of its internal state.