4 lastfm -- Interface to the Last.fm / Audioscrobbler web services

The spam module defines operations for handling cans of Spam. It knows the four generally available Spam varieties and understands both can sizes.

Because spamification requires Unix process management, the module is only available on genuine Unix systems.

The spam module defines the following functions:

open( filename[, mode[, buffersize]])
Open the file filename as a can of Spam. The optional mode and buffersize arguments specify the read/write mode ('r' (default) or 'w') and the buffer size (default: system dependent).

cansize
The default can size, in ounces. Legal values are 7 and 12. The default varies per supermarket. This variable should not be changed once the open() function has been called.

exception error
Exception raised when an operation fails for a Spam specific reason. The exception argument is a string describing the reason of the failure.



Subsections