Message173105
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc, brett.cannon, docs@python, eudoxos, ncoghlan, r.david.murray |
| Date |
2012年10月16日.22:12:05 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1350425525.33.0.998947499981.issue16194@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"""To prevent initializing an extension module more than
once, we keep a static dictionary 'extensions' keyed by module name
(for built-in modules) or by filename (for dynamically loaded
modules), containing these modules.
"""
So there can be only one module per filename.
But what if this dictionary was keyed by tuple(name, filename) instead? |
|