[issue33274] minidom removeAttributeNode returns None
Terry J. Reedy
report at bugs.python.org
Fri Apr 20 20:31:15 EDT 2018
Terry J. Reedy <tjreedy at udel.edu> added the comment:
It is standard in the Python stdlib that mutation methods usually return None and never echo an input argument. If one can pass a node to element.removeAttributeNode(node), there is no need to echo it back. So I suspect that the current behavior is intended.
David, is there a general (perhaps unwritten) rule about how Python translates such functions?
The other 'remove' methods also default to returning None. Same for the 'set' methods. All methods would need review before changing just one.
----------
nosy: +r.david.murray, terry.reedy
type: behavior -> enhancement
versions: -Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33274>
_______________________________________
More information about the Python-bugs-list
mailing list