Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Aug 31, 2018
1 parent f1c190a commit 51d6a91
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/type_object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,15 @@ Remove cross-version binary compatibility
=========================================

See `bpo-32388 <https://bugs.python.org/issue32388>`_.

PyStructSequence_InitType()
===========================

There are two public APIs for structure sequences that are wrappers around
``PyType_Ready()`` for initializing a ``PyTypeObject`` in-place:

* ``PyStructSequence_InitType()``
* ``PyStructSequence_InitType2()``

A third-party developer should prefer ``PyStructSequence_NewType()`` to create
a type object from an array of ``PyStructSequence_Desc``.

0 comments on commit 51d6a91

Please sign in to comment.