Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I meant that the current __getattr__ breaks deepcopy(). It can break also other 
protocols. It already has a list of exceptions, we need to add "__copy__" and 
"__deepcopy__" in this list. Or maybe exclude all dunder names by default and 
use a white list?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45167>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to