]> granicus.if.org Git - python/commit
bpo-37540: vectorcall: keyword names must be strings (GH-14682)
authorJeroen Demeyer <J.Demeyer@UGent.be>
Fri, 16 Aug 2019 10:41:27 +0000 (12:41 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 16 Aug 2019 10:41:27 +0000 (03:41 -0700)
commit0567786d26348aa7eaf0ab1b5d038fdabe409d92
treefe7c90392253850b8a3111b3177188a8f255dc79
parentf3cb68f2e4c3e0c405460f9bb881f5c1db70f535
bpo-37540: vectorcall: keyword names must be strings (GH-14682)

The fact that keyword names are strings is now part of the vectorcall and `METH_FASTCALL` protocols. The biggest concrete change is that `_PyStack_UnpackDict` now checks that and raises `TypeError` if not.

CC @markshannon @vstinner

https://bugs.python.org/issue37540
Doc/c-api/object.rst
Doc/c-api/structures.rst
Doc/library/dis.rst
Include/cpython/abstract.h
Lib/test/test_extcall.py
Lib/test/test_unpack_ex.py
Misc/NEWS.d/next/C API/2019-07-10-12-27-28.bpo-37540.E8Z773.rst [new file with mode: 0644]
Objects/call.c
Python/ceval.c
Python/getargs.c