[Python-Dev] Fix import errors to have data (original) (raw)
Guido van Rossum guido at python.org
Thu Jul 29 20:20:27 CEST 2004
- Previous message: [Python-Dev] Fix import errors to have data
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Modules/cjkcodecs _codecs_unicode.c, 1.1, NONE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It's going to be difficult to ensure that nothing ever gets a reference to a broken module, because of circular imports. Suppose A imports B, which imports A. If A's initialisation subsequently fails, then even if A is removed from sys.modules, B still contains a reference to the broken A.
Yeah, but I don't mind; my patch is still a big improvement in other cases and doesn't really make things any worse in the above case (B has a reference to a broken A, just like without my patch).
Did anybody look at my patch? Shall I check it in?
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Fix import errors to have data
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Modules/cjkcodecs _codecs_unicode.c, 1.1, NONE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]