Aaron Brady
2014-07-26 20:51:16 UTC
Hi, I asked about the inconsistency of the "RuntimeError" being raised when
mutating a container while iterating over it here [1], "set and dict
iteration" on Aug 16, 2012.
[1] http://www.gossamer-threads.com/lists/python/python/1004659
Continuing new from the bugs issue page [2]:
[2] http://bugs.python.org/issue22084
Other prior discussion [3] [4]:
[3] http://bugs.python.org/issue19332
[4] http://bugs.python.org/issue6017
Thanks Mr. Storchaka for your comments. The new documentation didn't help.
The current behavior is still a rare but inconsistent silent error. An
implementation sketch in pseudocode might simplify the endeavor [5]:
[5]
http://home.comcast.net/~castironpi-misc/irc-0168%20mutating%20while%20iterating%20markup.html
I gather we wouldn't want to pursue the "custom" data container, option
"2e": we would still need both "malloc/free" and a reference count.
mutating a container while iterating over it here [1], "set and dict
iteration" on Aug 16, 2012.
[1] http://www.gossamer-threads.com/lists/python/python/1004659
Continuing new from the bugs issue page [2]:
[2] http://bugs.python.org/issue22084
Other prior discussion [3] [4]:
[3] http://bugs.python.org/issue19332
[4] http://bugs.python.org/issue6017
Thanks Mr. Storchaka for your comments. The new documentation didn't help.
The current behavior is still a rare but inconsistent silent error. An
implementation sketch in pseudocode might simplify the endeavor [5]:
[5]
http://home.comcast.net/~castironpi-misc/irc-0168%20mutating%20while%20iterating%20markup.html
I gather we wouldn't want to pursue the "custom" data container, option
"2e": we would still need both "malloc/free" and a reference count.