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
data
__init__.py -rw-r--r-- 168 bytes
__main__.py -rw-r--r-- 58 bytes
pytree_idempotency.py -rwxr-xr-x 2.4 KB
support.py -rw-r--r-- 1.9 KB
test_all_fixers.py -rw-r--r-- 595 bytes
test_fixers.py -rw-r--r-- 120.0 KB
test_main.py -rw-r--r-- 5.6 KB
test_parser.py -rw-r--r-- 21.6 KB
test_pytree.py -rw-r--r-- 16.0 KB
test_refactor.py -rw-r--r-- 12.3 KB
test_util.py -rw-r--r-- 20.7 KB

back to top