Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bd5798f6
Commit
bd5798f6
authored
Jun 14, 2019
by
Victor Stinner
Committed by
GitHub
Jun 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document C API changes in What's New in Python 3.8 (GH-14092)
parent
58840432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
Doc/whatsnew/3.8.rst
Doc/whatsnew/3.8.rst
+27
-0
No files found.
Doc/whatsnew/3.8.rst
View file @
bd5798f6
...
...
@@ -955,6 +955,33 @@ Optimizations
Build and C API Changes
=======================
* The header files have been reorganized to better separate the different kinds
of APIs:
* ``Include/*.h`` should be the portable public stable C API.
* ``Include/cpython/*.h`` should be the unstable C API specific to CPython;
public API, with some private API prefixed by ``_Py`` or ``_PY``.
* ``Include/internal/*.h`` is the private internal C API very specific to
CPython. This API comes with no backward compatibility warranty and should
not be used outside CPython. It is only exposed for very specific needs
like debuggers and profiles which has to access to CPython internals
without calling functions. This API is now installed by ``make install``.
(Contributed by Victor Stinner in :issue:`35134` and :issue:`35081`,
work initiated by Eric Snow in Python 3.7)
* Some macros have been converted to static inline functions: parameter types
and return type are well defined, they don't have issues specific to macros,
variables have a local scopes. Examples:
* :c:func:`Py_INCREF`, :c:func:`Py_DECREF`
* :c:func:`Py_XINCREF`, :c:func:`Py_XDECREF`
* :c:func:`PyObject_INIT`, :c:func:`PyObject_INIT_VAR`
* Private functions: :c:func:`_PyObject_GC_TRACK`,
:c:func:`_PyObject_GC_UNTRACK`, :c:func:`_Py_Dealloc`
(Contributed by Victor Stinner in :issue:`35059`.)
* The :c:func:`PyByteArray_Init` and :c:func:`PyByteArray_Fini` functions have
been removed. They did nothing since Python 2.7.4 and Python 3.2.0, were
excluded from the limited API (stable ABI), and were not documented.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment