New submission from STINNER Victor: Follow-up of the issue #29311 "Argument Clinic: convert dict methods".
The dict.update() method hs a special prototype: def update(arg=None **kw): ... I don't think that Argument Clinic supports it right now, so I propose to first optimize dict_update() to use METH_FASTCALL. Attached patch is a first step: convert kwnames tuple to a dict. A second step would be to avoid the temporary dict and update the dict using args + kwnames directly. ---------- files: dict_update_fastcall.patch keywords: patch messages: 285744 nosy: haypo, inada.naoki priority: normal severity: normal status: open title: Use FASTCALL in dict.update() type: enhancement versions: Python 3.7 Added file: http://bugs.python.org/file46330/dict_update_fastcall.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29312> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com