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 pythonmeister
Recipients pythonmeister
Date 2007-12-12.10:04:46
SpamBayes Score 0.13046184
Marked as misclassified No
Message-id <1197453886.28.0.882582891366.issue1603@psf.upfronthosting.co.za>
In-reply-to
Content
>>> a = {}
>>> a['a'] = [1,2,3,4,5]
>>> a['b'] = [1,2,3,4,5]
>>> a['c'] = [1,2,3,4,5]
>>> for k in a.keys():
...     print a[k]
...     for t in a[k]:
...             del a[k][a[k].index(t)]
...             print a[k]
...
[1, 2, 3, 4, 5]
[2, 3, 4, 5]
[2, 4, 5]
[2, 4]
[1, 2, 3, 4, 5]
[2, 3, 4, 5]
[2, 4, 5]
[2, 4]
[1, 2, 3, 4, 5]
[2, 3, 4, 5]
[2, 4, 5]
[2, 4]

Does this make sense ?
History
Date User Action Args
2007-12-12 10:04:46pythonmeistersetspambayes_score: 0.130462 -> 0.13046184
recipients: + pythonmeister
2007-12-12 10:04:46pythonmeistersetspambayes_score: 0.130462 -> 0.130462
messageid: <1197453886.28.0.882582891366.issue1603@psf.upfronthosting.co.za>
2007-12-12 10:04:46pythonmeisterlinkissue1603 messages
2007-12-12 10:04:46pythonmeistercreate