[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Martin. Actually this patch is for 3.5 only. In 3.6 the code will be rewrote (issue25873). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7 ___ Pytho

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00b6a13cfd70 by Serhiy Storchaka in branch '3.5': Issue #25902: Fixed various refcount issues in ElementTree iteration. https://hg.python.org/cpython/rev/00b6a13cfd70 New changeset e09cb2af3092 by Serhiy Storchaka in branch 'default': Issue #25902:

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Martin Panter
Martin Panter added the comment: Left some comments about possibly unnecessary ref counting. Other than that it seems okay. -- ___ Python tracker ___ ___

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added tests. -- Added file: http://bugs.python.org/file41373/etree_iter_refcount_2.patch ___ Python tracker ___ __

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: ElementTree iteration code holds borrowed references when call user code (comparison with the tag, concatenating text and tail lazy lists, testing text and tail for empty). User code can make borrowed references invalid and this can lead to a crash. One ex