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 serhiy.storchaka
Recipients castironpi, rhettinger, serhiy.storchaka
Date 2014-07-26.16:31:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406392320.13.0.87059706553.issue22084@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-26 16:32:00serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, castironpi
2014-07-26 16:32:00serhiy.storchakasetmessageid: <1406392320.13.0.87059706553.issue22084@psf.upfronthosting.co.za>
2014-07-26 16:32:00serhiy.storchakalinkissue22084 messages
2014-07-26 16:31:59serhiy.storchakacreate