Message224073
It would be better discuss such ideas on python-ideas mailing list (http://mail.python.org/mailman/listinfo/python-ideas).
Option 3 breaks existing code such as
for k, v in d.items():
if pred(k, v):
d[k] = newvalue
break
Option 1 is memory inefficient. It requires a list of iterators in every dict (well, in almost every dict). And it doesn't look more time efficient than option 2.
Implementation of option 2 was provided and rejected in issue19332. |
|
Date |
User |
Action |
Args |
2014-07-26 16:32:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, castironpi |
2014-07-26 16:32:00 | serhiy.storchaka | set | messageid: <1406392320.13.0.87059706553.issue22084@psf.upfronthosting.co.za> |
2014-07-26 16:32:00 | serhiy.storchaka | link | issue22084 messages |
2014-07-26 16:31:59 | serhiy.storchaka | create | |
|