diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-05-31 18:33:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-31 18:33:41 (GMT) |
commit | 545a3b8814dbf2a5391e830d69e796fb1a1d62ec (patch) | |
tree | 6205d523dfbd747108fa254d8736e1283e17a746 /Doc/c-api | |
parent | c8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c (diff) | |
download | cpython-545a3b8814dbf2a5391e830d69e796fb1a1d62ec.zip cpython-545a3b8814dbf2a5391e830d69e796fb1a1d62ec.tar.gz cpython-545a3b8814dbf2a5391e830d69e796fb1a1d62ec.tar.bz2 |
Document changes for PyCode_New regarding PEP570 (GH-13706)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/code.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index e2b0b23..7aa91ee 100644 --- a/Doc/c-api/code.rst +++ b/Doc/c-api/code.rst @@ -40,6 +40,9 @@ bound into a function. :c:func:`PyCode_New` directly can bind you to a precise Python version since the definition of the bytecode changes often. + .. versionchanged:: 3.8 + An extra parameter is required (*posonlyargcount*) to support :PEP:`570`. + .. audit-event:: code.__new__ "code filename name argcount kwonlyargcount nlocals stacksize flags" .. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno) |