Indeed, as I indicated the old recipe/160164 by Michael Hudson works
flawlessly for me.
I am referring here to the latest edition: cookbook #2 which features
an upgraded version.
You find the examples in:
http://examples.oreilly.com/pythoncook2/cb2_examples.zip
The files are named cb2_6_21_*.py,
malv:
>At the statement b = Bar(), the following error occurs:
>The debugged program raised the exception unhandled AttributeError
>"type object 'Bar' has no attribute '__instance_refs__'"
I haven't studied it at all, but the code on
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/160164 s
Rene,
No, I couldn't get it to work. Sorry, I should have included that
information.
At the statement b = Bar(), the following error occurs:
The debugged program raised the exception unhandled AttributeError
"type object 'Bar' has no attribute '__instance_refs__'"
malv
--
http://mail.python.o
malv:
>Did anybody get this recipe to work?
Did you?
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
Upgrading Class Instances Automatically on Reload:
Recipe 20.15 out of Python Cookbook #2.
Did anybody get this recipe to work?
The original example by Michael Hudson works without problems.
I'm using Python 2.4.1
malv
--
http://mail.python.org/mailman/listinfo/python-list