Upgrading Class Instances Automatically on Reload
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Tue May 9 16:05:12 EDT 2006
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 seems to
run fine with Python 2.4.2 in WingIDE on Windows XP. There's no exception
and it prints:
1
2
3
Are you perhaps using an older dead tree version of the Cookbook?
--
René Pijlman
More information about the Python-list
mailing list