Why deepcopy with class with __getattr__ makes the tracing go nuts?
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...
Size: 877 bytes
Desc: not available
More information about the Python-list