summaryrefslogtreecommitdiff
path: root/Modules/_elementtree.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Issue #7990: dir() on ElementTree.Element now lists properties: "tag",Serhiy Storchaka2015-11-251-76/+94
|/ / | | | | | | "text", "tail" and "attrib". Original patch by Santoso Wijaya.
* | Issue #25691: Fixed crash on deleting ElementTree.Element attributes.Serhiy Storchaka2015-11-231-0/+6
|\ \ | |/
| * Issue #25691: Fixed crash on deleting ElementTree.Element attributes.Serhiy Storchaka2015-11-231-0/+6
| |
* | Issue #19687: Fixed memory leak on failed Element slice assignment.Serhiy Storchaka2015-11-221-21/+15
|\ \ | |/ | | | | Added new tests for Element slice assignments.
| * Issue #19687: Fixed memory leak on failed Element slice assignment.Serhiy Storchaka2015-11-221-21/+15
| | | | | | | | Added new tests for Element slice assignments.
* | Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.Serhiy Storchaka2015-06-291-17/+35
|\ \ | |/ | | | | | | | | | | A deprecation warning no longer issued by XMLParser subclass with default doctype() method. Direct call of doctype() now issues a warning. Parser's doctype() now is not called if target's doctype() is called. Based on patch by Martin Panter.
| * Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.Serhiy Storchaka2015-06-291-14/+21
| | | | | | | | | | | | | | A deprecation warning no longer issued by XMLParser subclass with default doctype() method. Direct call of doctype() now issues a warning. Parser's doctype() now is not called if target's doctype() is called. Based on patch by Martin Panter.
* | Issue #24091: Fixed various crashes in corner cases in C implementation ofSerhiy Storchaka2015-05-181-46/+96
|\ \ | |/ | | | | ElementTree.
| * Issue #24091: Fixed various crashes in corner cases in C implementation ofSerhiy Storchaka2015-05-181-47/+97
| | | | | | | | ElementTree.
* | Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-2/+2
| | | | | | | | instead of types={'type'} to specify the types the converter accepts.
* | Issue #20159. Converted the _elementtree module to Argument Clinic.Serhiy Storchaka2015-05-041-400/+556
| |
* | Issue #23450: Fixed possible integer overflows.Serhiy Storchaka2015-02-161-24/+33
| |
* | Issue #22156: Fix some "comparison between signed and unsigned integers"Victor Stinner2014-08-161-1/+1
|/ | | | compiler warnings in the Modules/ subdirectory.
* Issue #19815: Fix segfault when parsing empty namespace declaration.Eli Bendersky2013-11-281-1/+4
|\ | | | | | | Based on patches by Christian Heimes and Vajrasky Kok
| * Fix indentation from previous commitEli Bendersky2013-11-281-2/+2
| |
| * Issue #19815: Fix segfault when parsing empty namespace declaration.Eli Bendersky2013-11-281-1/+4
| | | | | | | | Based on patches by Christian Heimes and Vajrasky Kok
* | Cosmetic fixesEli Bendersky2013-11-241-13/+8
| |
* | Don't use deprecated function PyUnicode_GET_SIZE()Victor Stinner2013-11-131-1/+1
| | | | | | | | Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
* | Issue #19356: Avoid using a C variabled named "_self", it's a reserved word ↵Antoine Pitrou2013-10-231-2/+2
|\ \ | |/ | | | | in some C compilers.
| * Issue #19356: Avoid using a C variabled named "_self", it's a reserved word ↵Antoine Pitrou2013-10-231-2/+2
| | | | | | | | in some C compilers.
* | - followup for issue #18997, make _clear_joined_ptr static.doko@ubuntu.com2013-09-181-1/+1
|\ \ | |/
| * - followup for issue #18997, make _clear_joined_ptr static.doko@ubuntu.com2013-09-181-1/+1
| |
* | Merge for Issue #18997: Issue #18997: fix ElementTree crash with using ↵Eli Bendersky2013-09-131-26/+24
|\ \ | |/ | | | | pickle and __getstate__.
| * Issue #18997: fix ElementTree crash with using pickle and __getstate__.Eli Bendersky2013-09-131-26/+24
| | | | | | | | Based on report and initial patch from Germán M. Bravo
* | Use consistent style for else if / elseEli Bendersky2013-08-241-2/+5
| |
* | Issue #15651: PEP 3121 refactoring for _elementtreeEli Bendersky2013-08-101-30/+89
| | | | | | | | Patch by Antoine Pitrou (based on Robin Schreiber's original patch)
* | Add missing check of PyDict_Update()'s return value in _elementtree.cChristian Heimes2013-07-201-1/+2
|\ \ | |/ | | | | CID 719637
| * Add missing check of PyDict_Update()'s return value in _elementtree.cChristian Heimes2013-07-201-1/+2
| | | | | | | | CID 719637
* | (3.3->default): #18480: Add missing PyType_Ready call to _elementtree extensionRonald Oussoren2013-07-191-5/+9
|\ \ | |/
| * #18480: Add missing PyType_Ready call to _elementtree extensionRonald Oussoren2013-07-191-5/+9
| |
* | Issue #18408: Fix _elementtree.c, don't call Python function from an expatVictor Stinner2013-07-181-0/+28
| | | | | | | | handler if a Python exception is set
* | Issue #18408: Fix constructors of _elementtree.cVictor Stinner2013-07-121-12/+15
| | | | | | | | | | | | * Use Py_DECREF() instead of PyObject_GC_Del() to release correctly all resources * Raise MemoryError on memory allocation failure
* | Issue #18408: Fix create_extra() of _elementtree.c, raise MemoryError on memoryVictor Stinner2013-07-121-1/+3
| | | | | | | | allocation failure
* | Issue #18408: Different fixes in _elementtree.c to handle correctly MemoryErrorVictor Stinner2013-07-111-8/+14
| | | | | | | | | | | | | | | | | | | | * create_new_element() initializes all attributes before handling errors, to fix a crash in the destructor * create_new_element() calls PyObject_GC_Del() on error, instead of PyObject_Del(), because the object was created by PyObject_GC_New() * subelement() now handles create_new_element() failure * element_getattro() now handles element_get_text() failure * makeuniversal() now handles PyBytes_FromStringAndSize() failure
* | Cleanup _elementtree.cVictor Stinner2013-07-111-7/+6
| |
* | Issue #18408: _elementtree.c now handles create_extra() failureVictor Stinner2013-07-111-12/+24
| |
* | Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-42/+1
|\ \ | |/ | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
| * Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-42/+1
| | | | | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
* | Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-9/+30
|\ \ | |/ | | | | an internal XML encoding is UTF-8 or US-ASCII.
| * Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-9/+30
| | | | | | | | an internal XML encoding is UTF-8 or US-ASCII.
* | Get rid of ugly code duplication for ElementTree.parse when the acceleratorEli Bendersky2013-05-191-4/+3
| | | | | | | | | | is imported. Instead, ElementTree.parse can look for a special internal method defined by the accelerator.
* | Issue #17989: fix typo in error messageEli Bendersky2013-05-191-1/+1
|\ \ | |/
| * Issue #17989: fix typo in error messageEli Bendersky2013-05-191-1/+1
| |
* | _elementtree.XMLParser._setevents should support any sequence, not just tuplesEli Bendersky2013-05-191-46/+42
| | | | | | | | Also clean up some code around this
* | Issue #17901: fix TreeBuilder construction for an explicit element_factory=NoneEli Bendersky2013-05-181-1/+1
|\ \ | |/ | | | | Based on report and patch by Aaron Oakley.
| * Issue #17901: fix TreeBuilder construction for an explicit element_factory=NoneEli Bendersky2013-05-181-1/+1
| | | | | | | | Based on report and patch by Aaron Oakley.
* | Issue #17989: element_setattro returned incorrect error value.Eli Bendersky2013-05-181-8/+8
|\ \ | |/ | | | | This caused an exception to be raised later than expected.
| * Issue #17989: element_setattro returned incorrect error value.Eli Bendersky2013-05-181-8/+8
| | | | | | | | This caused an exception to be raised later than expected.
* | Revert c9674421d78e, leaving an additional commentEli Bendersky2013-04-241-5/+10
| |
* | Simplify the code of get_attrib_from_keywords somewhat.Eli Bendersky2013-04-221-9/+5
| |