RuntimeError: dictionary changed size during iteration

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roman Suzi

    #1

    RuntimeError: dictionary changed size during iteration


    I think, the behaviour below is misfeature:
    [color=blue][color=green][color=darkred]
    >>> [e for e in vars()][/color][/color][/color]
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    RuntimeError: dictionary changed size during iteration[color=blue][color=green][color=darkred]
    >>> e = None
    >>> [e for e in vars()][/color][/color][/color]
    ['e', '__builtins__', 'rlcompleter', '__file__', '_[1]', 'atexit', '__name__',
    'readline', '__doc__']


    Sincerely yours, Roman Suzi
    --
    rnd@onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
Working...