Skip to content

Commit

Permalink
new API XXX
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Sep 5, 2018
1 parent 431d36a commit cfa9dd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/new_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ see the :ref:`Regular runtime <regular-runtime>`.
New functions
=============

XXX the following functions have been added to the current WORK-IN-PROGRESS
implementation of the new C API. Maybe they will go away later. It's just a
small step to move away from borrowed references. Maybe existing
``PyObject_GetItem()`` and ``PyObject_SetItem()`` are already good enough.

* ``PyTuple_GetItemRef()``: similar to ``PyTuple_GetItem()`` but returns a
strong reference, rather than a borrowed reference
* ``PyList_GetItemRef()``: similar to ``PyList_GetItem()`` but returns a
Expand Down

0 comments on commit cfa9dd5

Please sign in to comment.