[Python-Dev] is sys.modules not meant to be replaced?
"Martin v. Löwis"
martin at v.loewis.de
Mon Jul 25 08:26:09 CEST 2011
> I agree with what you are saying wholeheartedly, but still think there
> is something fishy with the way that sys.modules works. I'll take it
> from here to a tracker issue though. :)
Well, there is a short answer to you question: sys.modules is *not*
meant to be replaced. Doing so will result in undefined behavior.
So there is nothing fishy about it.
Regards,
Martin
More information about the Python-Dev
mailing list