How to guard against bugs like this one?

John Nagle nagle at animats.com
Fri Feb 5 21:16:46 CET 2010


kj wrote:
...
> 
> Through a *lot* of trial an error I finally discovered that the
> root cause of the problem was the fact that, in the same directory
> as buggy.py, there is *another* innocuous little script, totally
> unrelated, whose name happens to be numbers.py. 

    The right answer to this is to make module search return an
error if two modules satisfy the search criteria.  "First find"
isn't a good solution.

				John Nagle



More information about the Python-list mailing list