[Python-Dev] regrtest.py mystery

Greg Ewing greg@cosc.canterbury.ac.nz
Tue, 18 Dec 2001 11:47:06 +1300 (NZDT)

Ka-Ping Yee <ping@lfw.org>:

> He deemed the situation where M is loaded-but-missing-from-sys.modules
> to be even worse than for M to be left loaded-but-broken therein.

Maybe modules should have a this-module-is-broken flag which
is set when the module fails to import properly, and which
causes an exception on any further attempt to reference a
name in it.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+