diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-01-19 12:37:13 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-01-19 12:37:13 +0100 |
commit | 7dc6a5f50aa47d32a75941dcb091eabe7958b2a1 (patch) | |
tree | c909658d7f5e9dc17bac36ef8552132b0cdd81de /Python/pymath.c | |
parent | 06d34393c2f1f28bf97873418e2b981e7b188811 (diff) | |
download | cpython-git-7dc6a5f50aa47d32a75941dcb091eabe7958b2a1.tar.gz |
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, /)
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions