[issue25958] Implicit ABCs have no means of "anti-registration"

Serhiy Storchaka report at bugs.python.org
Tue Jan 5 15:04:18 EST 2016


Serhiy Storchaka added the comment:

Note that setting some special methods (such as __copy__, __deepcopy__, __reduce_ex__, __reduce__, __setstate__, etc) to None has different meaning. The value None is just ignored and corresponding operation is fall back to other methods. For example copy.deepcopy() uses __reduce_ex__ if __deepcopy__ is None, __reduce__ if __reduce_ex__ is None.

May be this should be changed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25958>
_______________________________________


More information about the Python-bugs-list mailing list