[New-bugs-announce] [issue29312] Use FASTCALL in dict.update()

STINNER Victor report at bugs.python.org
Wed Jan 18 12:07:42 EST 2017

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list