Next / Previous / Contents / Shipman's homepage

6. Imports

Modules used by the script include sys, the usual Python system interface.

kkck
#================================================================
# Imports
#----------------------------------------------------------------

import sys

We'll also use an interesting container type, the defaultdict class from Python's optional collections module. See the online documentation for defaultdict.

kkck
from collections import defaultdict