This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients ezio.melotti, mark.dickinson, skrah, ubershmekel
Date 2010-07-01.11:13:40
SpamBayes Score 0.00022798181
Marked as misclassified No
Message-id <1277982822.08.0.88015894359.issue9136@psf.upfronthosting.co.za>
In-reply-to
Content
The tracker doesn't handle code when posted by mail. Here's the
code again:

>>> for name, val in locals().items():
...     print(locals())
... 
{'name': '__builtins__', 'val': <module 'builtins' (built-in)>, '__builtins__': <module 'builtins' (built-in)>, '__package__': None, '__name__': '__main__', '__doc__': None}
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: dictionary changed size during iteration

 
>>> for name, val in locals().items():
...     pass
... 
>>> 
>>> locals()
{'name': '__doc__', 'val': None, '__builtins__': <module 'builtins' (built-in)>, '__package__': None, '__name__': '__main__', '__doc__': None}
>>>
History
Date User Action Args
2010-07-01 11:13:42skrahsetrecipients: + skrah, mark.dickinson, ezio.melotti, ubershmekel
2010-07-01 11:13:42skrahsetmessageid: <1277982822.08.0.88015894359.issue9136@psf.upfronthosting.co.za>
2010-07-01 11:13:40skrahlinkissue9136 messages
2010-07-01 11:13:40skrahcreate