Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81347
| From | Patrick Stinson <patrickkidd@gmail.com> |
|---|---|
| Subject | unloading a module created with imp.new_module |
| Date | 2014-11-22 21:49 -0900 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16173.1416733471.18130.python-list@python.org> (permalink) |
If I create a module with imp.new_module(name), how can I unload it so that all the references contained in it are set to zero and the module is deleted? deleting the reference that is returned doesn’t seem to do the job, and it’s not in sys.modules, so where is the dangling reference? Thanks!
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
unloading a module created with imp.new_module Patrick Stinson <patrickkidd@gmail.com> - 2014-11-22 21:49 -0900 Re: unloading a module created with imp.new_module Steven D'Aprano <steve@pearwood.info> - 2014-11-24 03:47 +0000
csiph-web