[issue32424] Rename copy() to __copy__() in xml.etree.ElementTree.Element Python implementation

Paul Ganssle report at bugs.python.org
Thu Dec 28 17:22:10 EST 2017


Paul Ganssle <p.ganssle at gmail.com> added the comment:

@Andrew Are you suggesting that a `copy` method be *added* to the C implementation, as an alias to __copy__? Because it makes no sense to keep the pure Python and C implementations out of sync just so that it's easier for projects forking the pure Python implementation to maintain backwards compatibility with their earlier implementations.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32424>
_______________________________________


More information about the Python-bugs-list mailing list