Staging
v0.8.1
https://github.com/python/cpython
Revision 804d6893b801e8f30318afc38c20d4d0e6161db3 authored by kj on 05 December 2020, 16:02:14 UTC, committed by GitHub on 05 December 2020, 16:02:14 UTC


Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor.

Needs backport to 3.9.

Automerge-Triggered-By: GH:gvanrossum
1 parent da3d2ab
History
Tip revision: 804d6893b801e8f30318afc38c20d4d0e6161db3 authored by kj on 05 December 2020, 16:02:14 UTC
bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)
Tip revision: 804d689
File Mode Size
darwin
libffi_osx
_ctypes.c -rw-r--r-- 185.1 KB
_ctypes_test.c -rw-r--r-- 21.6 KB
_ctypes_test.h -rw-r--r-- 82 bytes
callbacks.c -rw-r--r-- 18.1 KB
callproc.c -rw-r--r-- 58.5 KB
cfield.c -rw-r--r-- 42.2 KB
ctypes.h -rw-r--r-- 13.1 KB
ctypes_dlfcn.h -rw-r--r-- 459 bytes
malloc_closure.c -rw-r--r-- 3.2 KB
stgdict.c -rw-r--r-- 31.3 KB

back to top