RuntimeError: dictionary changed size during iteration

Discussion in 'Python' started by Roman Suzi, Jan 19, 2005.

  1. Roman Suzi

    Roman Suzi Guest

    I think, the behaviour below is misfeature:

    >>> [e for e in vars()]

    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    RuntimeError: dictionary changed size during iteration
    >>> e = None
    >>> [e for e in vars()]

    ['e', '__builtins__', 'rlcompleter', '__file__', '_[1]', 'atexit', '__name__',
    'readline', '__doc__']


    Sincerely yours, Roman Suzi
    --
    =\= My AI powered by GNU/Linux RedHat 7.3
    Roman Suzi, Jan 19, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Terry Reedy
    Replies:
    0
    Views:
    363
    Terry Reedy
    Jan 20, 2005
  2. robert
    Replies:
    29
    Views:
    1,051
    Raymond Hettinger
    Mar 14, 2006
  3. Jean-Paul Calderone
    Replies:
    0
    Views:
    364
    Jean-Paul Calderone
    Mar 13, 2006
  4. Robert Dailey
    Replies:
    6
    Views:
    384
    Terry Reedy
    Dec 9, 2008
  5. Laszlo Nagy
    Replies:
    3
    Views:
    364
    John Nagle
    Apr 22, 2011
Loading...

Share This Page