Suggestion for improved ImportError message

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Fri Aug 15 08:42:01 EDT 2008


Lie:
>I'm not sure there are any reason to test for failed import in doctest)<

I have code that uses numpy if available, otherwise uses slower normal
Python code. Inside the doctests I'd like to test both situations...

Bye,
bearophile



More information about the Python-list mailing list