New submission from Stefan Sonnenberg-Carstens: >>> 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 ? ---------- messages: 58488 nosy: pythonmeister severity: normal status: open title: Wanted behaviour ? type: behavior versions: Python 2.3 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1603> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com