[issue6676] expat parser throws Memory Error when parsing multiple files

Amaury Forgeot d'Arc report at bugs.python.org
Fri Oct 9 14:04:58 CEST 2009

Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The patch is good; a test would be appreciated.

The difference now is that in case of true low-memory conditions,
ExpatError("no memory") is raised instead of MemoryError.
This is acceptable IMO.

> It seems ParseFile() doesn't support second call
This is correct; the C expat library has a function XML_ParserReset()
which could be called before calling ParseFile() again, but pyexpat does
not expose it yet (see issue1208730).

nosy: +amaury.forgeotdarc

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list