File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ bound into a function.
4040 :c:func: `PyCode_New ` directly can bind you to a precise Python
4141 version since the definition of the bytecode changes often.
4242
43+ .. versionchanged :: 3.8
44+ An extra parameter is required (*posonlyargcount *) to support :PEP:`570`.
45+
4346 .. audit-event:: code.__new__ "code filename name argcount kwonlyargcount nlocals stacksize flags"
4447
4548.. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno)
Original file line number Diff line number Diff line change @@ -1278,6 +1278,9 @@ Changes in the C API
12781278
12791279 (Contributed by Antoine Pitrou in :issue: `32388 `.)
12801280
1281+ * The :c:func: `PyCode_New ` has a new parameter in the second position (*posonlyargcount *)
1282+ to support :pep: `570 `, indicating the number of positional-only arguments.
1283+
12811284
12821285CPython bytecode changes
12831286------------------------
You can’t perform that action at this time.
0 commit comments