Message268997
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(). | |
| Date | User | Action | Args | | 2016-06-21 13:43:10 | serhiy.storchaka | set | recipients: + serhiy.storchaka, rhettinger, abarry, Demur Rumed | | 2016-06-21 13:43:10 | serhiy.storchaka | set | messageid: <1466516590.47.0.552105966321.issue27358@psf.upfronthosting.co.za> | | 2016-06-21 13:43:10 | serhiy.storchaka | link | issue27358 messages | | 2016-06-21 13:43:10 | serhiy.storchaka | create | | |