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 Demur Rumed, abarry, rhettinger, serhiy.storchaka
Date 2016-06-21.13:43:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466516590.47.0.552105966321.issue27358@psf.upfronthosting.co.za>
In-reply-to
Content
I think this kills the optimization effect for non-dicts.

See on PyDict_Merge(). It takes the boolean parameter that controls the behavior in case of matching keys. I think the best would be to rename it to say _PyDict_MergeEx(), extend the boolean parameter to ternary parameter, and raise an exception if it is in the third state and matching keys are found. PyDict_Merge() would be implemented as a simple wrapper around _PyDict_MergeEx(). We should check wherever this affects the performance of dict.update().
History
Date User Action Args
2016-06-21 13:43:10serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, abarry, Demur Rumed
2016-06-21 13:43:10serhiy.storchakasetmessageid: <1466516590.47.0.552105966321.issue27358@psf.upfronthosting.co.za>
2016-06-21 13:43:10serhiy.storchakalinkissue27358 messages
2016-06-21 13:43:10serhiy.storchakacreate