diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-12-05 16:24:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 16:24:38 (GMT) |
commit | d5c029b1a9b47737efb8966f804d28b99a2de239 (patch) | |
tree | afd0a802a18af75897fba44d39a4a540fc1a41d4 /Python/pythonrun.c | |
parent | b630ca7bc13ba9bdf95cd7dce0ac8e1578fb53a0 (diff) | |
download | cpython-d5c029b1a9b47737efb8966f804d28b99a2de239.zip cpython-d5c029b1a9b47737efb8966f804d28b99a2de239.tar.gz cpython-d5c029b1a9b47737efb8966f804d28b99a2de239.tar.bz2 |
bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)
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
(cherry picked from commit 804d6893b801e8f30318afc38c20d4d0e6161db3)
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions