[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

Eli Bendersky report at bugs.python.org
Thu Feb 9 05:21:43 CET 2012

Eli Bendersky <eliben at gmail.com> added the comment:


Thanks for checking. I agree that this behavior is acceptable, but a documentation fix would be appropriate. The documentation of iterparse should mention the events it accepts, also saying that those are strings. 

The events are listed at http://effbot.org/zone/element-iterparse.htm

Would you like to try your hand at submitting a patch for Python 3.2? I will review and apply it to 3.2 and 3.3


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list