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 -- http://mail.python.org/mailman/listinfo/python-list