]> granicus.if.org Git - python/commit
Added character data buffering to pyexpat parser objects.
authorFred Drake <fdrake@acm.org>
Fri, 28 Jun 2002 22:56:48 +0000 (22:56 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 28 Jun 2002 22:56:48 +0000 (22:56 +0000)
commit2a3d7db93e1fef12466042b74096dd19c64afb88
treec2c1e98f296c96889311d86963f4f795a46e9d6d
parent3e76d7f3b319d9b92fed3ffb43044ae68ee61f98
Added character data buffering to pyexpat parser objects.

Setting the buffer_text attribute to true causes the parser to collect
character data, waiting as long as possible to report it to the Python
callback.  This can save an enormous number of callbacks from C to
Python, which can be a substantial performance improvement.

buffer_text defaults to false.
Lib/test/test_pyexpat.py
Modules/pyexpat.c