cpython/Objects/clinic
Victor Stinner 7dc6a5f50a dict.get() and dict.setdefault() now use AC
Issue #29311: dict.get() and dict.setdefault() methods now use Argument Clinic
to parse arguments. Their calling convention changes from METH_VARARGS to
METH_FASTCALL which avoids the creation of a temporary tuple.

The signature of docstrings is also enhanced. For example,
    get(...)
becomes:
    get(self, key, default=None, /)
2017-01-19 12:37:13 +01:00
..
bytearrayobject.c.h Run Argument Clinic: METH_VARARGS=>METH_FASTCALL 2017-01-17 02:21:47 +01:00
bytesobject.c.h Run Argument Clinic: METH_VARARGS=>METH_FASTCALL 2017-01-17 02:21:47 +01:00
dictobject.c.h dict.get() and dict.setdefault() now use AC 2017-01-19 12:37:13 +01:00
odictobject.c.h Convert some OrderedDict methods to Argument Clinic 2017-01-17 03:46:13 +01:00
unicodeobject.c.h Run Argument Clinic: METH_VARARGS=>METH_FASTCALL 2017-01-17 02:21:47 +01:00