allowing braces around suites
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Sun Aug 29 20:50:40 EDT 2004
Kjetil Torgrim Homme wrote:
> when I provide four lines of code and tell you there's a bug, of
> course you can spot it immediately. when it's part of a large system,
> it's a bit harder. also consider that the db.commit() originally was
> correctly placed by the programmer, and the wrong indentation was
> introduced later by an editing glitch.
This is why you need a comprehensive unit test suite. Such a suite would
reveal that non-students were not getting committed.
Tim Delaney
More information about the Python-list
mailing list