Next / Previous / Contents / Shipman's homepage

4. Prologue

The base classes, along with some utility functions, live in file We start our literate exposition of the code with these lines that form a Python module documentation string at the beginning of the file.
'''  Base classes for IBP banding data entry system.

  Do not edit this file directly.  It is extracted mechanically
  from the specification:

This module uses two of the author's standard library modules:

Sources and documentation for these modules are available at Logging, scanning, and singleton objects for Python: and

Here are the imports for the file. Because we use Python generators, the first import is necessary to enable generators.
# Imports
from __future__ import generators

We'll also need some standard modules: the Python string and regular expression matching modules.
import string
import re

Next, import everything from and library routines.
from log import *
from scan import *