Next / Previous / Contents / Shipman's homepage

5. Manifest constants

Next we declare constants of universal interest throughout the baseclasses.py module.

5.1. Constants for species authority files

These constants give the lengths of fields in the species authority file.

baseclasses.py
#================================================================
# Manifest constants
#----------------------------------------------------------------
SPEC4_L

Length of a four-letter species code.

baseclasses.py
SPEC4_L = 4

BLANK_SPEC4

A blank species code.

baseclasses.py
BLANK_SPEC4 = ' ' * SPEC4_L

SPEC6_L

Length of a six-letter species code.

baseclasses.py
SPEC6_L = 6

BLANK_SPEC6

A blank six-letter species code.

baseclasses.py
BLANK_SPEC6 = ' ' * SPEC6_L

ENG_L

Length of the English name for a species.

baseclasses.py
ENG_L = 37

SPEC_NO_L

Length of a “species number.” The dBASE V field is called SSN.

baseclasses.py
SPEC_NO_L = 5

ENO_L

Called ENO in the dBASE V layout.

baseclasses.py
ENO_L = 1

GENUS_L

Length of the genus field, GENUS.

baseclasses.py
GENUS_L = 16

SPECIES_L

Length of the species field.

baseclasses.py
SPECIES_L = 17