On Fri, 22 Oct 2010 09:41:09 -0500 Benjamin Peterson <[email protected]> wrote: > 2010/10/22 <[email protected]>: > > Instances of classes don't refer to the module their class is defined in. > > It seems more likely that the reason the module is garbage collected is > > that there really is nothing which refers to it anymore. > > Indeed, this is really a Python bug, but there's no good way to deal > with it unless dictionaries can know they are module globals.
How about making functions keep a reference to the module they're defined in? Is there any reason we shouldn't do that? Regards Antoine. _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
