Message140300
| 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:38 | r.david.murray | set | recipients:
+ r.david.murray, Calvin.Spealman |
| 2011年07月13日 19:51:38 | r.david.murray | set | messageid: <1310586698.2.0.277159678565.issue12554@psf.upfronthosting.co.za> |
| 2011年07月13日 19:51:37 | r.david.murray | link | issue12554 messages |
| 2011年07月13日 19:51:37 | r.david.murray | create |
|