[Python-Dev] Issue 19332: Guard against changing dict during iteration (original) (raw)

R. David Murray rdmurray at bitdance.com
Wed Nov 6 15:56:07 CET 2013


On Wed, 06 Nov 2013 23:34:22 +1100, Steven D'Aprano <steve at pearwood.info> wrote:

On Tue, Nov 05, 2013 at 08:38:09PM -0800, Ethan Furman wrote:

> http://bugs.python.org/issue19332 Duplicate of this: http://bugs.python.org/issue6017 The conclusion on that also was that it is not worth guarding against such an unusual circumstance.

If I remember correctly (and I may not) the size-change guards were added because without them there were certain cases that could either segfault or result in an infinite loop.

--David



More information about the Python-Dev mailing list