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.

 

A Django site. rendered by a django application. hosted by webfaction.