Skip to content

Commit 84d8baa

Browse files
committed
Fix xml.etree.ElementTree.Element.getiterator()
Issue python#28314: Fix function declaration (C flags) for the getiterator() method of xml.etree.ElementTree.Element.
1 parent cf6d2d9 commit 84d8baa

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎Misc/NEWS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ Core and Builtins
4444
Library
4545
-------
4646

47+
- Issue #28314: Fix function declaration (C flags) for the getiterator() method
48+
of xml.etree.ElementTree.Element.
49+
4750
- Issue #28148: Stop using localtime() and gmtime() in the time
4851
module.
4952

‎Modules/_elementtree.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3702,7 +3702,7 @@ static PyMethodDef element_methods[] = {
37023702
_ELEMENTTREE_ELEMENT_ITERTEXT_METHODDEF
37033703
_ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF
37043704

3705-
{"getiterator", (PyCFunction)_elementtree_Element_iter, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_iter__doc__},
3705+
{"getiterator", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL, _elementtree_Element_iter__doc__},
37063706
_ELEMENTTREE_ELEMENT_GETCHILDREN_METHODDEF
37073707

37083708
_ELEMENTTREE_ELEMENT_ITEMS_METHODDEF

0 commit comments

Comments
 (0)