]> 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>
Thu, 13 May 2021 08:17:07 +0000 (01:17 -0700)
committerGitHub <noreply@github.com>
Thu, 13 May 2021 08:17:07 +0000 (01:17 -0700)
commit7cbe6ca63495d478a3164d6d26ef36cb611abbbb
tree5f4031c7fe9b16378e544b7fe860320f05374b9c
parent6275ea02825731fd23f523058ac87aac53888740
bpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures (GH-26062)

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>
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