Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bpo-39573: Update docs
  • Loading branch information
corona10 committed May 22, 2020
commit 8e9637ac9c9371ed996327d2bb21135ebc544987
1 change: 1 addition & 0 deletions Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ the definition of all other Python objects.

.. versionchanged:: 3.10
:c:func:`Py_TYPE()` is changed to the inline static function.
Comment thread
corona10 marked this conversation as resolved.
Use :c:func:`Py_SET_TYPE()` to set an object type.


.. c:function:: int Py_IS_TYPE(PyObject *o, PyTypeObject *type)
Expand Down
15 changes: 8 additions & 7 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ Optimizations
=============


Build and C API Changes
=======================
Build Changes
=============
Comment thread
corona10 marked this conversation as resolved.
Outdated



Expand All @@ -105,11 +105,12 @@ Removed
=======
Comment thread
corona10 marked this conversation as resolved.


C API Changes
=============

Porting to Python 3.10
======================

This section lists previously described changes and other bugfixes
that may require changes to your code.

----------------------

* Since :c:func:`Py_TYPE()` is changed to the inline static function,
``Py_TYPE(obj) = new_type`` should be ported to use :c:func:`Py_SET_TYPE()`.
Comment thread
corona10 marked this conversation as resolved.
Outdated
(Contributed by Dong-hee Na in :issue:`39573`.)