On Feb 27, 6:47 pm, Ziga Seilnacht [EMAIL PROTECTED] wrote:
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
Hello all,
I'm using the metaclass trick for automatic reloading of class member
functions, found at:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/160164
My problem is that if I
1) pickle an object that inherits from AutoReloader
2) unpickle the object
3) modify one of the pickled'
Andrew Felch wrote:
Hello all,
I'm using the metaclass trick for automatic reloading of class member
functions, found
at:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/160164
My problem is that if I
1) pickle an object that inherits from AutoReloader
2) unpickle the object
3)
On Feb 27, 3:50 pm, Ziga Seilnacht [EMAIL PROTECTED] wrote:
Andrew Felch wrote:
Hello all,
I'm using the metaclass trick for automatic reloading of class member
functions, found
at:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/160164
My problem is that if I
1) pickle an
Andrew Felch wrote:
Thanks Ziga. I use pickle protocol 2 and binary file types with the
command: cPickle.dump(obj, file, 2)
I did your suggestion, i commented out the __call__ function of
MetaInstanceTracker and copied the text to the __new__ function of
AutoReloader (code appended). I
On Feb 27, 5:30 pm, Ziga Seilnacht [EMAIL PROTECTED] wrote:
Andrew Felch wrote:
Thanks Ziga. I use pickle protocol 2 and binary file types with the
command: cPickle.dump(obj, file, 2)
I did your suggestion, i commented out the __call__ function of
MetaInstanceTracker and copied the
Andrew Felch wrote:
I pasted the code into mine and replaced the old. It seems not to
work for either unpickled objects or new objects. I add methods to a
class that inherits from AutoReloader and reload the module, but the
new methods are not callable on the old objects. Man! It seems
On Feb 27, 3:23 pm, Ziga Seilnacht [EMAIL PROTECTED] wrote:
Andrew Felch wrote:
I pasted the code into mine and replaced the old. It seems not to
work for either unpickled objects or new objects. I add methods to a
class that inherits from AutoReloader and reload the module, but the
new
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
On Feb 27, 3:47 pm, Ziga Seilnacht [EMAIL PROTECTED] wrote:
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
10 matches
Mail list logo