Next / Previous / Contents / Shipman's homepage

5.5. Band number constants

These constants describe band numbers.

L_BAND_NO_FIXED

Length of the part of a band number that is fixed, that is, not the “odometer” part.

baseclasses.py
L_BAND_NO_FIXED = 4

L_BAND_NO_ODO_PREFIX

Length of the “odometer” part of the prefix, that is, the part that is affected by propagation of the carry when 100 is added to a band number.

baseclasses.py
L_BAND_NO_ODO_PREFIX = 3

L_BAND_NO_PREFIX

Length of a band number prefix.

baseclasses.py
L_BAND_NO_PREFIX = L_BAND_NO_FIXED + L_BAND_NO_ODO_PREFIX

L_BAND_NO_SUFFIX

Length of a band number suffix.

baseclasses.py
L_BAND_NO_SUFFIX = 2

BLANK_BAND_NO_SUFFIX

A string of blanks as long as L_BAND_NO_SUFFIX.

baseclasses.py
BLANK_BAND_NO_SUFFIX = ' ' * L_BAND_NO_SUFFIX

L_BAND_NO

Length of a complete band number.

baseclasses.py
L_BAND_NO = L_BAND_NO_PREFIX + L_BAND_NO_SUFFIX

BLANK_BAND_NO

A blank field the size of a band number.

baseclasses.py
BLANK_BAND_NO = " " * L_BAND_NO