Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(201681)

Delta Between Two Patch Sets: Modules/_elementtree.c

Issue 27809: _PyObject_FastCall(): add support for keyword arguments
Left Patch Set: Created 3 years, 3 months ago
Right Patch Set: Created 3 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « Include/abstract.h ('k') | Modules/_functoolsmodule.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /*-------------------------------------------------------------------- 1 /*--------------------------------------------------------------------
2 * Licensed to PSF under a Contributor Agreement. 2 * Licensed to PSF under a Contributor Agreement.
3 * See http://www.python.org/psf/license for licensing details. 3 * See http://www.python.org/psf/license for licensing details.
4 * 4 *
5 * _elementtree - C accelerator for xml.etree.ElementTree 5 * _elementtree - C accelerator for xml.etree.ElementTree
6 * Copyright (c) 1999-2009 by Secret Labs AB. All rights reserved. 6 * Copyright (c) 1999-2009 by Secret Labs AB. All rights reserved.
7 * Copyright (c) 1999-2009 by Fredrik Lundh. 7 * Copyright (c) 1999-2009 by Fredrik Lundh.
8 * 8 *
9 * info@pythonware.com 9 * info@pythonware.com
10 * http://www.pythonware.com 10 * http://www.pythonware.com
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 /* General case */ 851 /* General case */
852 st = ET_STATE_GLOBAL; 852 st = ET_STATE_GLOBAL;
853 if (!st->deepcopy_obj) { 853 if (!st->deepcopy_obj) {
854 PyErr_SetString(PyExc_RuntimeError, 854 PyErr_SetString(PyExc_RuntimeError,
855 "deepcopy helper not found"); 855 "deepcopy helper not found");
856 return NULL; 856 return NULL;
857 } 857 }
858 858
859 stack[0] = object; 859 stack[0] = object;
860 stack[1] = memo; 860 stack[1] = memo;
861 return _PyObject_FastCall(st->deepcopy_obj, stack, 2, NULL); 861 return _PyObject_FastCall(st->deepcopy_obj, stack, 2);
862 } 862 }
863 863
864 864
865 /*[clinic input] 865 /*[clinic input]
866 _elementtree.Element.__sizeof__ -> Py_ssize_t 866 _elementtree.Element.__sizeof__ -> Py_ssize_t
867 867
868 [clinic start generated code]*/ 868 [clinic start generated code]*/
869 869
870 static Py_ssize_t 870 static Py_ssize_t
871 _elementtree_Element___sizeof___impl(ElementObject *self) 871 _elementtree_Element___sizeof___impl(ElementObject *self)
(...skipping 3099 matching lines...) Expand 10 before | Expand all | Expand 10 after
3971 PyModule_AddObject(m, "Element", (PyObject *)&Element_Type); 3971 PyModule_AddObject(m, "Element", (PyObject *)&Element_Type);
3972 3972
3973 Py_INCREF((PyObject *)&TreeBuilder_Type); 3973 Py_INCREF((PyObject *)&TreeBuilder_Type);
3974 PyModule_AddObject(m, "TreeBuilder", (PyObject *)&TreeBuilder_Type); 3974 PyModule_AddObject(m, "TreeBuilder", (PyObject *)&TreeBuilder_Type);
3975 3975
3976 Py_INCREF((PyObject *)&XMLParser_Type); 3976 Py_INCREF((PyObject *)&XMLParser_Type);
3977 PyModule_AddObject(m, "XMLParser", (PyObject *)&XMLParser_Type); 3977 PyModule_AddObject(m, "XMLParser", (PyObject *)&XMLParser_Type);
3978 3978
3979 return m; 3979 return m;
3980 } 3980 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+