Bug with super() and reload()?
Michael Hudson
mwh at python.net
Thu Jan 16 13:25:48 EST 2003
Jp Calderone <exarkun at intarweb.us> writes:
> One could look at it as a wart, though I personally wouldn't. Regardless,
> it can be worked around.
>
> See twisted.python.rebuild (http://www.twistedmatrix.com) for an example of
> how ;)
That might have difficulties with a list of instances, no?
Also these lines:
if not hasattr(mod, '__dict__'):
# It's a builtin module; nothing to replace here.
continue
baffle me. How did you manage that?
>>> len(sys.__dict__)
44
>>> len(termios.__dict__)
231
etc.
Cheers,
M.
--
8. A programming language is low level when its programs require
attention to the irrelevant.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list
mailing list