Statistics on pathmap.py ------------------------ Solo verified by Shipman using trace tables: see pathmap.vrf for the trace tables themselves. Program size: 63/224 code lines, 28% non-blank non-comment lines. ================================================================ Syntax errors ---------------------------------------------------------------- S1 Forgot the `self' argument in the PathMap() class constructor. ---------------------------------------------------------------- S2 Neglected to import log module. ---------------------------------------------------------------- S3 In PathMap.__readPathLine(), the precompiled pattern `linePat' is not in the global name space; it is in the object's namespace. So this line: m = scan.tabReMatch ( linePat ) becomes: m = scan.tabReMatch ( self.linePat ) ---------------------------------------------------------------- ================================================================ Bugs that would be caught in a more strongly-typed language ---------------------------------------------------------------- T1 ================================================================ Logic bugs ---------------------------------------------------------------- B1