]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 16 May 2021 14:34:43 +0000 (07:34 -0700)
committerGitHub <noreply@github.com>
Sun, 16 May 2021 14:34:43 +0000 (17:34 +0300)
commit925cb85e9e28d69be53db669527c0a1292f0fbfb
tree6846b22eba196b63ebd962048c579588c87fc76d
parent376740110ecb2440fee9e04f325131aaefeb5c47
bpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH-26062) (GH-26093)

These are passed and called as PyCFunction, however they are defined here without the (ignored) args parameter.

This works fine in some C compilers, but fails in webassembly or anything else that has strict function pointer call type checking.
(cherry picked from commit ab383eb6f03896b0ef6634ee3d776344fcb9e5b8)

Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
Misc/NEWS.d/next/Core and Builtins/2021-05-12-14-26-16.bpo-44114.p-WfAE.rst [new file with mode: 0644]
Objects/dictobject.c