| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Renaming to _Element_Py for clarity and moving it to a more logical location.
_ElementInterface OTOH is unused and is therefore removed.
Close #17988
|
| | | |
| | |
| | |
| | | |
Also clean up some code around this
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Also remove unused macro.
|
| | | |
| | |
| | |
| | | |
non-blocking applications.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Based on patch by David Lam
|
| |\ \ \
| |/ /
| | |
| | |
| | | |
When _elementtree is imported, iterparse is redefined as a class and the parser
argument was ommitted. Fix this, and add a docstring to the class.
|
| | | |
| | |
| | |
| | |
| | | |
When _elementtree is imported, iterparse is redefined as a class and the parser
argument was ommitted. Fix this, and add a docstring to the class.
|
| |\ \ \
| |/ / |
|
| | |\ \
| | |/ |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
parameter. In the code, replace the old outdated Doxygen-ish comment above ElementTree.write by a proper docstring.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
serialization functions - short_empty_elements. It controls how elements
without contents are emitted.
Patch by Serhiy Storchaka. Feature initially proposed by Ariel Poliak.
|
| |\ \ \
| |/ /
| | |
| | | |
element_factory (fixes a regression in SimpleTAL).
|
| | | |
| | |
| | |
| | | |
element_factory (fixes a regression in SimpleTAL).
|
| |/ /
| |
| |
| | |
patch by Serhiy Storchaka
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
elements "meta" and "param".
|
| | | |
|
| | |
| |
| |
| | |
now 2x faster on short calls. Related to #1767933
|
| | |
| |
| |
| | |
add a test to make sure it keeps working
|
| | |
| |
| |
| | |
Storchaka, with some minor fixes by me
|
| | | |
|
| | |
| |
| |
| | |
module, which causes other failures and fails itself depending on the order tests are run.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
Add attrib keyword to Element and SubElement in _elementtree.
Patch developed with Ezio Melotti.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | | |
|
| | |
| |
| |
| | |
start/end/data/close) for the Python implementation as well. Add disabled tests for the doctype() method.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| |/
|
|
| |
automatically used whenever available.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
deallocated without explicit closing. These warnings are silenced by
default, except in pydebug mode.
|
| |
|
|
| |
Use ``encoding="unicode"`` to generate a Unicode string.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
........
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78125 | antoine.pitrou | 2010-02-09 18:08:05 +0100 (mar., 09 févr. 2010) | 7 lines
Issue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")
in XML processing instructions and comments. These raw characters are
allowed by the XML specification, and are necessary when outputting e.g.
PHP code in a processing instruction. Patch by Neil Muller.
........
|
| |
|
|
|
| |
entities when they could't be represented in the requested output
encoding. Patch by Jerry Chen.
|
| |
|
|
| |
the standard library and tests.
|
| |
|
|
|
|
|
|
|
|
| |
Completely get rid of StringIO.py and cStringIO.c.
I had to fix a few tests and modules beyond what Christian did, and
invent a few conventions. E.g. in elementtree, I chose to
write/return Unicode strings whe no encoding is given, but bytes when
an explicit encoding is given. Also mimetools was made to always
assume binary files.
|
| | |
|
| | |
|
| |
|
|
|
| |
* all calls to functions in the string module (except maketrans)
* everything from stropmodule except for maketrans() which is still used
|
| |
|
|
|
|
|
|
|
|
| |
and .keys(), .items(), .values() return dict views.
The dict views aren't fully functional yet; in particular, they can't
be compared to sets yet. but they are useful as "iterator wells".
There are still 27 failing unit tests; I expect that many of these
have fairly trivial fixes, but there are so many, I could use help.
|
| |
|
|
|
| |
attempts at backwards compatibility which can't work anyway on Py3k (and aren't
needed for Python 2.5 and later).
|