This is better as it additionally avoids keeping the document itself alive:
https://github.com/lxml/lxml/commit/3923cb727ac2cc0a5e4152ed42071be8a323fa5b
This is better as it additionally avoids keeping the document itself alive:
https:/ /github. com/lxml/ lxml/commit/ 3923cb727ac2cc0 a5e4152ed42071b e8a323fa5b