[issue24583] set.update(): Crash when source set is changed during merging

Raymond Hettinger report at bugs.python.org
Mon Jul 20 07:55:57 CEST 2015


Raymond Hettinger added the comment:

Added a variant patch that brings the steps together in a more logical manner (single entry point at the top and the named exits at the bottom, brings refcount adjustment logic together in a more coherent way).  The "restart" target is done the same way as the "top" target in dictobject.c.   Added a comment explaining why the pre-increment is necessary.

----------
Added file: http://bugs.python.org/file39957/set_self_contained.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24583>
_______________________________________


More information about the Python-bugs-list mailing list