Bug with super() and reload()?
just at xs4all.nl
Thu Jan 16 16:37:30 CET 2003
In article <7kd5nmgp.fsf at python.net>,
Thomas Heller <theller at python.net> wrote:
> martin at v.loewis.de writes:
> > Thomas Heller <theller at python.net> writes:
> > > Should this be considered a bug, or is it simply a wart, and reload
> > > should be avoided?
> > I think reloading a module should create a new module dictionary, even
> > though such a change may break existing usage of reload.
> I cannot imagine what this would change with the case I described?
The old class would still refer to the old namespace (through the
func_globals attr of the function objects), thus finding the correct
(but old ;-) base class.
More information about the Python-list