[issue43041] copying WeakValueDictionary is not iteration safe

2021-01-27 Thread Daniel Romberg
Daniel Romberg added the comment: Sorry, I meant an exception. I changed the type to "behavior", thanks for the hint. -- type: crash -> behavior ___ Python tracker ___ __

[issue43041] copying WeakValueDictionary is not iteration safe

2021-01-27 Thread Christian Heimes
Christian Heimes added the comment: Do you see a crash or an exception? We use the term "crash" to refer to a segfault or other fatal crashes of the interpreter. -- nosy: +christian.heimes versions: -Python 3.6, Python 3.7 ___ Python tracker

[issue43041] copying WeakValueDictionary is not iteration safe

2021-01-27 Thread Torben Paetz
Change by Torben Paetz : -- nosy: +tpaetz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue43041] copying WeakValueDictionary is not iteration safe

2021-01-27 Thread Daniel Romberg
New submission from Daniel Romberg : The copy operation is not safe to use during iteration. The following test case raises a "RuntimeError: dictionary changed size during iteration": import weakref class Class: pass def TEST_weakValue(): d = weakref.WeakValueDictionary() a = Class()