Eric Talevich added the comment:
Well, this is not the best month for me to try digging into a new codebase... I
would not mind if someone else did the patch for this.
--
___
Python tracker
<http://bugs.python.org/issue9
Eric Talevich added the comment:
It's more-or-less fixed in Python 3.2:
- With cElementTree, both bytes and strings are accepted for events;
- With ElementTree, only strings are accepted, and bytes raise a ValueError
(unknown event).
A small inconsistency remains, but it's fine t
Eric Talevich added the comment:
This bug seems to be still present in Python 3.1.2. (Unless I'm doing something
wrong.) Was r78942 included in the 3.1.2 release?
--
___
Python tracker
<http://bugs.python.org/i
Eric Talevich added the comment:
This issue still occurs when the name "long" is a function argument:
def double(long):
return long * 2
2to3 converts it to:
def double(long):
return int * 2
Should I file a new bug, or can someone reopen this?
--
nosy: +eri
New submission from Eric Talevich :
In xml.etree, ElementTree and cElementTree implement different interfaces for
the iterparse function/class.
In ElementTree, the argument "events" must be a tuple of strings:
from xml.etree import ElementTree as ET
for result in ET.iterparse(