Skip to content

Commit

Permalink
Py_GetType(), Py_TYPE_IS, %T
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Sep 5, 2018
1 parent c747813 commit 8025306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/bad_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Border line:
* ``Py_TYPE()``
* ``Py_SETREF()``, ``Py_XSETREF()``: the caller has to manually increment the
reference counter of the new value
* ``N`` format of ``Py_BuildValue()``?

Borrowed references: PyEval_GetFuncName()
=========================================
Expand Down
3 changes: 3 additions & 0 deletions doc/new_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ New functions
reference on the item
* ``PySequence_Fast_GetItemRef()``
* ``PyStructSequence_SetItemRef()``
* ``Py_GetType()``: similar to ``Py_TYPE()`` but returns a strong reference
* ``Py_TYPE_IS(ob, type)``: equivalent to ``Py_TYPE(ob) == type``
* ``%T`` format for ``PyUnicode_FromFormat()``

XXX private functions:

Expand Down

0 comments on commit 8025306

Please sign in to comment.