File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ bound into a function.
40
40
:c:func: `PyCode_New ` directly can bind you to a precise Python
41
41
version since the definition of the bytecode changes often.
42
42
43
+ .. versionchanged :: 3.8
44
+ An extra parameter is required (*posonlyargcount *) to support :PEP:`570`.
45
+
43
46
.. audit-event:: code.__new__ "code filename name argcount kwonlyargcount nlocals stacksize flags"
44
47
45
48
.. 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
1278
1278
1279
1279
(Contributed by Antoine Pitrou in :issue: `32388 `.)
1280
1280
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
+
1281
1284
1282
1285
CPython bytecode changes
1283
1286
------------------------
You can’t perform that action at this time.
0 commit comments