This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Calvin.Spealman, r.david.murray
Date 2011-07-13.19:51:37
SpamBayes Score 2.0564712e-06
Marked as misclassified No
Message-id <1310586698.2.0.277159678565.issue12554@psf.upfronthosting.co.za>
In-reply-to
Content
That can't be done.  If an import fails, it fails.  But if it succeeds, the module is loaded, and there is no reason to unload it.  After all, import in python is idempotent (doing it a second time has no effect other than adding the name to the local namespace).  So the import in the module that failed to load may not be the first, and unloading it would break other modules using it.
History
Date User Action Args
2011-07-13 19:51:38r.david.murraysetrecipients: + r.david.murray, Calvin.Spealman
2011-07-13 19:51:38r.david.murraysetmessageid: <1310586698.2.0.277159678565.issue12554@psf.upfronthosting.co.za>
2011-07-13 19:51:37r.david.murraylinkissue12554 messages
2011-07-13 19:51:37r.david.murraycreate