[Python-checkins] cpython (3.6): Fix xml.etree.ElementTree.Element.getiterator()

victor.stinner python-checkins at python.org
Thu Sep 29 16:14:43 EDT 2016


https://hg.python.org/cpython/rev/1e29dca5dc4c
changeset:   104162:1e29dca5dc4c
branch:      3.6
parent:      104158:1b9e71f5de83
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Sep 29 22:12:35 2016 +0200
summary:
  Fix xml.etree.ElementTree.Element.getiterator()

Issue #28314: Fix function declaration (C flags) for the getiterator() method
of xml.etree.ElementTree.Element.

files:
  Misc/NEWS              |  3 +++
  Modules/_elementtree.c |  2 +-
  2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -44,6 +44,9 @@
 Library
 -------
 
+- Issue #28314: Fix function declaration (C flags) for the getiterator() method
+  of xml.etree.ElementTree.Element.
+
 - Issue #28148: Stop using localtime() and gmtime() in the time
   module.
 
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -3702,7 +3702,7 @@
     _ELEMENTTREE_ELEMENT_ITERTEXT_METHODDEF
     _ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF
 
-    {"getiterator", (PyCFunction)_elementtree_Element_iter, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_iter__doc__},
+    {"getiterator", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL, _elementtree_Element_iter__doc__},
     _ELEMENTTREE_ELEMENT_GETCHILDREN_METHODDEF
 
     _ELEMENTTREE_ELEMENT_ITEMS_METHODDEF

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list