Andrew Felch wrote: > Thanks for checking. I think I narrowed the problem down to > inheritance. I inherit from list or some other container first: > > class PointList( list, AutoReloader ): > def PrintHi1(self): > print "Hi2" > > class MyPrintingClass( AutoReloader ): > def PrintHi2(self): > print "Hi2v2" > > Automatic reloading works for MyPrintingClass but not for PointList. > Any ideas? > > -Andrew
Ah yes, this is the problem of list.__new__ not calling the next class in MRO. Try to switch the bases, so that AutoReloader's __new__ method will be called first. Ziga -- http://mail.python.org/mailman/listinfo/python-list