Find more than one error at once

Ben Finney bignose+hates-spam at benfinney.id.au
Sat May 10 03:51:53 EDT 2008


Joseph Turian <turian at gmail.com> writes:

> Is it possible to coax python to find more than one error at once?

Definitely, write unit tests and run the whole suite
<URL:http://www.python.org/doc/lib/module-unittest>. All errors found
by your unit test suite will be reported.

If you mean the Python parser and compiler, then the answer to this is
in the Zen of Python: "In the face of ambiguity, refuse the temptation
to guess". An error in parsing or compiling leaves no clear
unambiguous path for finding further parsing or compilation errors.

-- 
 \          "It's a good thing we have gravity or else when birds died |
  `\             they'd just stay right up there. Hunters would be all |
_o__)                                     confused."  -- Steven Wright |
Ben Finney



More information about the Python-list mailing list