4.1 Example

The following example demonstrates how to open a can of spam using the spam module.

>>> import spam
>>> can = spam.open('/etc/passwd')
>>> can.empty()
>>> can.close()