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()