Message363657
There is very strange code in _elementtree.Element.__getstate__ which decrement references to elements of a list before decrementing a reference to the list itself. It happens only if creating a dict fails, so it is almost impossible to reproduce, but if it happens it will likely cause a crash.
The proposed PR fixes the bug and also simplifies the code. |
|
Date |
User |
Action |
Args |
2020-03-08 12:24:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, eli.bendersky |
2020-03-08 12:24:04 | serhiy.storchaka | set | messageid: <1583670244.74.0.393826922537.issue39903@roundup.psfhosted.org> |
2020-03-08 12:24:04 | serhiy.storchaka | link | issue39903 messages |
2020-03-08 12:24:04 | serhiy.storchaka | create | |
|