Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
>>>fromxml.etree.ElementTreeimportElement>>>Element("a").extend(Element("a")foriinrange(10))# works>>>Element("a").extend(1/0foriinrange(10))# throws unrelated TypeErrorTraceback (mostrecentcalllast):File"<stdin>",line1,in<module>TypeError:expectedsequence,not"generator"
C-implementation only bug.
Submitting a patch...
CPython versions tested on:
3.12, 3.13, CPython main branch
Operating systems tested on:
macOS, Windows
Linked PRs
- gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions #123214
- [3.13] gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214) #123257
- [3.12] gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214) #123258