SIGN IN SIGN UP

[3.11] gh-101438: Avoid reference cycle in ElementTree.iterparse. (GH-114269) (GH-114500)

The iterator returned by ElementTree.iterparse() may hold on to a file
descriptor. The reference cycle prevented prompt clean-up of the file
descriptor if the returned iterator was not exhausted.
(cherry picked from commit ce01ab536f22a3cf095d621f3b3579c1e3567859)

Co-authored-by: Sam Gross <colesbury@gmail.com>
M
Miss Islington (bot) committed
9344edeb75e299baeee51dbc26172977475827ef
Parent: e85f4c6
Committed by GitHub <noreply@github.com> on 1/23/2024, 8:49:13 PM