Why deepcopy with class with __getattr__ makes the tracing go nuts?

Fabio Zadrozny fabiofz at gmail.com
Thu Feb 19 15:38:45 CET 2009

Anyone has any idea why the code attached does not work?

Basically, after doing the deepcopy of the class that has __getattr__
overridden, the python tracing facilities don't seem to work anymore.

In the code-attached, if the deepcopy is removed, all works as
expected (or if __deepcopy__ is overridden too).



p.s. I've discovered this while trying to debug a real-world
application and the debugger stopped working after making that
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fast_tests2.py
Type: application/octet-stream
Size: 877 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20090219/1a318d96/attachment.obj>

More information about the Python-list mailing list