We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = 'https://github.com/akuchling'
closed_at = <Date 2008-01-08.14:34:01.633>
created_at = <Date 2007-09-09.16:40:11.825>
labels = ['expert-XML']
title = 'pyexpat patch for changing buffer_size'
updated_at = <Date 2008-01-08.22:58:17.049>
user = 'https://bugs.python.org/AchimGaedke'
activity = <Date 2008-01-08.22:58:17.049>
actor = 'AchimGaedke'
assignee = 'akuchling'
closed = True
closed_date = <Date 2008-01-08.14:34:01.633>
closer = 'akuchling'
components = ['XML']
creation = <Date 2007-09-09.16:40:11.825>
creator = 'AchimGaedke'
dependencies = 
files = ['8409', '8410', '8411', '9097', '9098']
hgrepos = 
issue_num = 1137
keywords = ['patch']
message_count = 5.0
messages = ['55767', '59494', '59497', '59538', '59571']
nosy_count = 2.0
nosy_names = ['akuchling', 'AchimGaedke']
pr_nums = 
priority = 'normal'
resolution = 'accepted'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1137'
versions = ['Python 2.6']
The text was updated successfully, but these errors were encountered:
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 method. It
handles reallocation sufficiently efficient without introducing extra
variables to the parser class.
Also a documentation patch and some test cases are available.
These patches and tests were done with debian etch python2.5, which is
python-2.5.1 . This patch also works on python2.4 .
Sorry, something went wrong.
Here's a simpler, but still untested version of the patch that cuts out
the various cases for reallocating when there's already buffered data
and just does a flush every time.
Here's another update of the simplified version, that also updated the
documentation patch for reST and updates the test for the current code.
Committed to the trunk in rev. 59853.
AchimGaedke: thanks for your contribution! Also, please submit a signed
copy of the
contributor agreement when you can: see
http://www.python.org/psf/contrib/ for details.
Also the shortend version will bring better performance.
No branches or pull requests