New submission from Achim Gaedke:
Hello!
Sometimes people have big amounts of text/data in xml files. To make
processing more effective, they should be able to change the buffer size
for collecting character data in one string.
Here comes a patch that applies necessary changes in setattr
Changes by Achim Gaedke:
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1137
__
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python
Changes by Achim Gaedke:
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1137
__
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python
New submission from Achim Gaedke:
Regarding the compile() function in html/lib/built-in-funcs.html:
Please add a note about the exceptions raised by this function.
--
components: Documentation
messages: 57850
nosy: AchimGaedke
severity: minor
status: open
title: failure behaviour
New submission from Achim Gaedke:
The value SyntaxError.offset is for most SyntaxErrors an offset from
beginning of line SyntaxError.lineno. In case of an triple-quoted string
which is not at all closed, offset seems to be the offset from beginning
of the buffer.
--
components
Achim Gaedke added the comment:
sometimes offset is None...
Example:
def blub(bla, blub=None, blabla):
bla
causes:
non-default argument follows default argument
Added file: http://bugs.python.org/file9150/compile_test.py
__
Tracker [EMAIL PROTECTED]
http
New submission from Achim Gaedke achim.gae...@physik.tu-darmstadt.de:
Hi!
I tried to use the more general xml.dom interface, no longer defaulting to
minidom straight away (or using etree).
The DOM tree gained with PullDOM seem to be incomplete.
Here is the output of the program attached
Achim Gaedke achim.gae...@physik.tu-darmstadt.de added the comment:
sorry, the output given before was generated with python2.7
changing the line
xml.sax.parseString(xml_data, d_handler)
to
xml.sax.parseString(bytes(xml_data, utf-8), d_handler)
makes it working for python 3.2, result
Achim Gaedke achim.gae...@physik.tu-darmstadt.de added the comment:
Potentially both: The xml.dom.pulldom documentation is not really there.
Maybe the PullDOM builds a partial tree, not caring about nested nodes. In
contrast to SAX2DOM, which seems to fill the DOM tree completely.
I tried