Next / Previous / Contents / Shipman's homepage

9.3. DayNotes.lookupLoc(): Look up a location code

To find the definition of a locality code code, given a DayNotes instance D:


If the code is defined, the method returns its definition as a Loc instance; see Section 11, “class Loc: Locality code definition”.

If the code is not defined, the method raises a KeyError exception.