Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵ | Antoine Pitrou | 2012-10-04 | 1 | -28/+79 |
| | | | | element_factory (fixes a regression in SimpleTAL). | ||||
* | Sanitize and modernize some of the _elementtree code (see issue #16089). | Antoine Pitrou | 2012-10-01 | 1 | -107/+59 |
| | |||||
* | Issue #15144: Fix possible integer overflow when handling pointers as ↵ | Antoine Pitrou | 2012-09-20 | 1 | -1/+1 |
| | | | | | | integer values, by using Py_uintptr_t instead of size_t. Patch by Serhiy Storchaka. | ||||
* | Raise ImportError if pyexpat's version is incompatible | Eli Bendersky | 2012-07-21 | 1 | -3/+5 |
|\ | |||||
| * | Raise ImportError if pyexpat's version is incompatible | Eli Bendersky | 2012-07-21 | 1 | -4/+7 |
| | | |||||
* | | Merge for #14988 | Eli Bendersky | 2012-07-17 | 1 | -5/+1 |
|\ \ | |/ | |||||
| * | ISsue #14988: restore Python 2's behavior of raising ImportError when unable ↵ | Eli Bendersky | 2012-07-17 | 1 | -0/+2 |
| | | | | | | | | to load pyexpat, instead of a SystemError/RuntimeError | ||||
* | | Issue #14055: Add __sizeof__ support to _elementtree. | Martin v. Löwis | 2012-06-17 | 1 | -0/+14 |
| | | |||||
* | | Fix windows compilation problems caused by previous commit. | Eli Bendersky | 2012-06-15 | 1 | -2/+4 |
| | | |||||
* | | Replace the iter/itertext methods of Element in _elementtree with true C ↵ | Eli Bendersky | 2012-06-15 | 1 | -90/+272 |
| | | | | | | | | | | | | implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents. Also reorganized the tests a bit to be more robust. | ||||
* | | Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords | Eli Bendersky | 2012-06-03 | 1 | -2/+2 |
| | | |||||
* | | Issue #14007: implement doctype() method calling in XMLParser of _elementtree. | Eli Bendersky | 2012-06-01 | 1 | -10/+99 |
| | | | | | | | | Includes exposing a doctype handler from expat through pyexpat. | ||||
* | | We're always building _elementtree with USE_PYEXPAT_CAPI, so the #ifdefs in | Eli Bendersky | 2012-06-01 | 1 | -12/+2 |
| | | | | | | | | the code are unnecessary. | ||||
* | | Issue #14007: make XMLParser a real subclassable type exported from ↵ | Eli Bendersky | 2012-06-01 | 1 | -110/+140 |
| | | | | | | | | _elementtree. +cleanups | ||||
* | | Issue #14007: implemented the 'element_factory' feature of TreeBuilder in | Eli Bendersky | 2012-05-30 | 1 | -30/+73 |
| | | | | | | | | _elementtree, with a test. | ||||
* | | Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and ↵ | Eli Bendersky | 2012-05-29 | 1 | -74/+77 |
| | | | | | | | | subclassable. | ||||
* | | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree. | Eli Bendersky | 2012-05-29 | 1 | -21/+84 |
| | | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti. | ||||
* | | Issue #14849: setup Element data members to be assignable in subclasses | Eli Bendersky | 2012-05-20 | 1 | -13/+12 |
| | | |||||
* | | Replace bootstrap imports with real C API calls. | Eli Bendersky | 2012-04-05 | 1 | -8/+9 |
| | | |||||
* | | Fix Windows compilation errors | Eli Bendersky | 2012-04-04 | 1 | -2/+4 |
| | | |||||
* | | Fixes and enhancements to _elementtree: | Eli Bendersky | 2012-04-03 | 1 | -21/+44 |
| | | | | | | | | | | | | * Fixed refleak problems when GC collection is run (see messages in issue #14065) * Added weakref support to Element objects | ||||
* | | Issue #14065: Added cyclic GC support to ET.Element | Eli Bendersky | 2012-03-30 | 1 | -15/+48 |
| | | |||||
* | | Issue #13782: streamline argument type-checking in ET.Element | Eli Bendersky | 2012-03-23 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | append, extend and insert now consistently type-check their argument in both the C and Python implementations, and raise TypeError for non-Element argument. Added tests | ||||
* | | Issue #14207: the ParseError exception raised by _elementtree was made | Eli Bendersky | 2012-03-16 | 1 | -8/+27 |
| | | | | | | | | | | | | | | | | | | | | consistent to the one raised by the Python module (the 'code' attribute was added). In addition, the exception is now documented. Added a test to check that ParseError has the required attributes, and threw away the equivalent doctest which is no longer required. | ||||
* | | Closes Issue #14246: _elementtree parser will now handle io.StringIO | Eli Bendersky | 2012-03-16 | 1 | -1/+22 |
| | | |||||
* | | Issue #14178: Problem deleting slices with steps != +1 in the _elementtree ↵ | Eli Bendersky | 2012-03-09 | 1 | -3/+67 |
| | | | | | | | | | | | | module. Fixed the problem and added some tests. Closes #14178 | ||||
* | | Issue #14007: drop unused TreeBuilder().xml. | Florent Xicluna | 2012-03-05 | 1 | -23/+0 |
| | | |||||
* | | Issue #14128: Exposing Element as an actual type from _elementtree, rather ↵ | Eli Bendersky | 2012-03-04 | 1 | -82/+145 |
| | | | | | | | | | | | | | | | | than a factory function. This makes the C implementation more aligned with the Python implementation. Also added some tests to ensure that Element is now a type and that it can be subclassed. | ||||
* | | Issue #13988: cElementTree is deprecated and the _elementtree accelerator is ↵ | Florent Xicluna | 2012-02-13 | 1 | -3/+3 |
| | | | | | | | | automatically used whenever available. | ||||
* | | Issue #13988: move the python bootstrap code to cElementTree.py, and remove ↵ | Florent Xicluna | 2012-02-11 | 1 | -232/+2 |
| | | | | | | | | obsolete code for Python 2.4 and 2.5. | ||||
* | | Merge 3.2: issue #2892 | Florent Xicluna | 2011-11-01 | 1 | -15/+23 |
|\ \ | |/ | |||||
| * | Closes #2892: preserve iterparse events in case of SyntaxError. | Florent Xicluna | 2011-11-01 | 1 | -15/+23 |
| | | |||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -4/+4 |
| | | |||||
* | | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -13/+20 |
| | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -11/+18 |
| | | |||||
* | | Issue #10833: Use PyUnicode_FromFormat() and PyErr_Format() instead of | Victor Stinner | 2011-03-21 | 1 | -5/+7 |
| | | | | | | | | PyOS_snprintf(). | ||||
* | | _elementtree.c: remove trailing spaces | Victor Stinner | 2011-03-21 | 1 | -19/+19 |
|/ | |||||
* | Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for ↵ | Alexander Belopolsky | 2010-12-08 | 1 | -24/+23 |
| | | | | NULL | ||||
* | Merge branches/pep-0384. | Martin v. Löwis | 2010-12-03 | 1 | -2/+2 |
| | |||||
* | Issue #10093: ResourceWarnings are now issued when files and sockets are | Antoine Pitrou | 2010-10-29 | 1 | -11/+21 |
| | | | | | deallocated without explicit closing. These warnings are silenced by default, except in pydebug mode. | ||||
* | Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99 | Alexander Belopolsky | 2010-08-11 | 1 | -14/+14 |
| | | | | | va_copy, but available on all python platforms. Untabified a few unrelated files. | ||||
* | Fix a crash in _elementtree related to lone unicode surrogates. | Victor Stinner | 2010-03-22 | 1 | -0/+2 |
| | | | | | | | Fix a segfault on: >>> import _elementtree >>> _elementtree.iterparse('/bin/sh', ("\uDC80", "\ud808\udf45")) | ||||
* | Merged revisions 78838-78839,78917,78919,78934,78937 via svnmerge from | Florent Xicluna | 2010-03-13 | 1 | -255/+540 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78838 | florent.xicluna | 2010-03-11 15:36:19 +0100 (jeu, 11 mar 2010) | 2 lines Issue #6472: The xml.etree package is updated to ElementTree 1.3. The cElementTree module is updated too. ........ r78839 | florent.xicluna | 2010-03-11 16:55:11 +0100 (jeu, 11 mar 2010) | 2 lines Fix repr of tree Element on windows. ........ r78917 | florent.xicluna | 2010-03-13 12:18:49 +0100 (sam, 13 mar 2010) | 2 lines Move the xml test data to their own directory. ........ r78919 | florent.xicluna | 2010-03-13 13:41:48 +0100 (sam, 13 mar 2010) | 2 lines Do not chdir when running test_xml_etree, and enhance the findfile helper. ........ r78934 | florent.xicluna | 2010-03-13 18:56:19 +0100 (sam, 13 mar 2010) | 2 lines Update some parts of the xml.etree documentation. ........ r78937 | florent.xicluna | 2010-03-13 21:30:15 +0100 (sam, 13 mar 2010) | 3 lines Add the keyword argument "method=None" to the .write() method and the tostring/tostringlist functions. Update the function, class and method signatures, according to the new convention. ........ | ||||
* | add a replacement API for PyCObject, PyCapsule #5630 | Benjamin Peterson | 2009-05-05 | 1 | -1/+1 |
| | | | | | | All stdlib modules with C-APIs now use this. Patch by Larry Hastings | ||||
* | Issue #1717: rename tp_compare to tp_reserved. I'll change the | Mark Dickinson | 2009-02-02 | 1 | -3/+3 |
| | | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong. | ||||
* | Issue #1717, stage 2: remove uses of tp_compare in Modules and most | Mark Dickinson | 2009-02-01 | 1 | -4/+5 |
| | | | | Objects. | ||||
* | Rename PyUnicode_AsString -> _PyUnicode_AsString and | Marc-André Lemburg | 2008-08-07 | 1 | -2/+2 |
| | | | | | | | | | PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1. | ||||
* | #3247: Get rid of Py_FindMethod: | Amaury Forgeot d'Arc | 2008-07-02 | 1 | -30/+82 |
| | | | | | | | Second step: keep tp_getattr functions when they are complex, but use PyObject_GenericGetAttr() as a fallback. These were the last occurrences of Py_FindMethod. | ||||
* | Implement PEP 3121: new module initialization and finalization API. | Martin v. Löwis | 2008-06-11 | 1 | -4/+24 |
| | |||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -21/+21 |
| |