summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/tuple.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-22 21:02:22 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-02-22 21:02:22 (GMT)
commit237fda2984f1e5032936895ad95089abc4a88473 (patch)
tree4af215667b4c1ab5735dda8124cfa8b07a712273 /Doc/c-api/tuple.rst
parent7c12432fe1db41ea31ec3af9610a5bc4c372c65c (diff)
downloadcpython-237fda2984f1e5032936895ad95089abc4a88473.zip
cpython-237fda2984f1e5032936895ad95089abc4a88473.tar.gz
cpython-237fda2984f1e5032936895ad95089abc4a88473.tar.bz2
whatsnew: PyStructSequence_InitType2, Victor's MemoryError fixes.
I'm documenting this new function, but I'm wondering if this will trigger someone to think about whether or not this actually makes sense :)
Diffstat (limited to 'Doc/c-api/tuple.rst')
-rw-r--r--Doc/c-api/tuple.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst
index 184affb..0876739 100644
--- a/Doc/c-api/tuple.rst
+++ b/Doc/c-api/tuple.rst
@@ -129,6 +129,14 @@ type.
Initializes a struct sequence type *type* from *desc* in place.
+.. c:function:: void PyStructSequence_InitType2(PyTypeObject *type, PyStructSequence_Desc *desc)
+
+ The same as ``PyStructSequence_InitType``, but returns ``0`` on success and ``-1`` on
+ failure.
+
+ .. versionadded:: 3.4
+
+
.. c:type:: PyStructSequence_Desc
Contains the meta information of a struct sequence type to create.