Skip to content

Commit d999020

Browse files
committed
Deploying to gh-pages from @ 1c1c864 🚀
1 parent bccd528 commit d999020

File tree

540 files changed

+716
-809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

540 files changed

+716
-809
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 95672da2a7bca6d65c95c8dafe0f7466
3+
config: 2b1915377ac5817e2b5ab6694dc2f7b7
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/c-api/tuple.rst.txt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,27 @@ Tuple Objects
3333
3434
.. c:function:: PyObject* PyTuple_New(Py_ssize_t len)
3535
36-
Return a new tuple object of size *len*, or ``NULL`` on failure.
36+
Return a new tuple object of size *len*,
37+
or ``NULL`` with an exception set on failure.
3738
3839
3940
.. c:function:: PyObject* PyTuple_Pack(Py_ssize_t n, ...)
4041
41-
Return a new tuple object of size *n*, or ``NULL`` on failure. The tuple values
42+
Return a new tuple object of size *n*,
43+
or ``NULL`` with an exception set on failure. The tuple values
4244
are initialized to the subsequent *n* C arguments pointing to Python objects.
4345
``PyTuple_Pack(2, a, b)`` is equivalent to ``Py_BuildValue("(OO)", a, b)``.
4446
4547
4648
.. c:function:: Py_ssize_t PyTuple_Size(PyObject *p)
4749
4850
Take a pointer to a tuple object, and return the size of that tuple.
51+
On error, return ``-1`` and with an exception set.
4952
5053
5154
.. c:function:: Py_ssize_t PyTuple_GET_SIZE(PyObject *p)
5255
53-
Return the size of the tuple *p*, which must be non-``NULL`` and point to a tuple;
54-
no error checking is performed.
56+
Like :c:func:`PyTuple_Size`, but without error checking.
5557
5658
5759
.. c:function:: PyObject* PyTuple_GetItem(PyObject *p, Py_ssize_t pos)
@@ -74,8 +76,10 @@ Tuple Objects
7476
.. c:function:: PyObject* PyTuple_GetSlice(PyObject *p, Py_ssize_t low, Py_ssize_t high)
7577
7678
Return the slice of the tuple pointed to by *p* between *low* and *high*,
77-
or ``NULL`` on failure. This is the equivalent of the Python expression
78-
``p[low:high]``. Indexing from the end of the tuple is not supported.
79+
or ``NULL`` with an exception set on failure.
80+
81+
This is the equivalent of the Python expression ``p[low:high]``.
82+
Indexing from the end of the tuple is not supported.
7983
8084
8185
.. c:function:: int PyTuple_SetItem(PyObject *p, Py_ssize_t pos, PyObject *o)
@@ -132,6 +136,8 @@ type.
132136
Create a new struct sequence type from the data in *desc*, described below. Instances
133137
of the resulting type can be created with :c:func:`PyStructSequence_New`.
134138
139+
Return ``NULL`` with an exception set on failure.
140+
135141
136142
.. c:function:: void PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc)
137143
@@ -140,8 +146,8 @@ type.
140146
141147
.. c:function:: int PyStructSequence_InitType2(PyTypeObject *type, PyStructSequence_Desc *desc)
142148
143-
The same as ``PyStructSequence_InitType``, but returns ``0`` on success and ``-1`` on
144-
failure.
149+
Like :c:func:`PyStructSequence_InitType`, but returns ``0`` on success
150+
and ``-1`` with an exception set on failure.
145151
146152
.. versionadded:: 3.4
147153
@@ -198,6 +204,8 @@ type.
198204
Creates an instance of *type*, which must have been created with
199205
:c:func:`PyStructSequence_NewType`.
200206
207+
Return ``NULL`` with an exception set on failure.
208+
201209
202210
.. c:function:: PyObject* PyStructSequence_GetItem(PyObject *p, Py_ssize_t pos)
203211

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ <h3>瀏覽</h3>
319319
<a href="https://www.python.org/psf/donations/">Please donate.</a>
320320
<br />
321321
<br />
322-
最後更新於 Aug 27, 2024 (04:09 UTC)。
322+
最後更新於 Aug 28, 2024 (13:21 UTC)。
323323

324324
<a href="/bugs.html">Found a bug</a>?
325325

bugs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ <h3>瀏覽</h3>
358358
<a href="https://www.python.org/psf/donations/">Please donate.</a>
359359
<br />
360360
<br />
361-
最後更新於 Aug 27, 2024 (04:09 UTC)。
361+
最後更新於 Aug 28, 2024 (13:21 UTC)。
362362

363363
<a href="/bugs.html">Found a bug</a>?
364364

c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ <h3>瀏覽</h3>
329329
<a href="https://www.python.org/psf/donations/">Please donate.</a>
330330
<br />
331331
<br />
332-
最後更新於 Aug 27, 2024 (04:09 UTC)。
332+
最後更新於 Aug 28, 2024 (13:21 UTC)。
333333

334334
<a href="/bugs.html">Found a bug</a>?
335335

c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ <h3>瀏覽</h3>
343343
<a href="https://www.python.org/psf/donations/">Please donate.</a>
344344
<br />
345345
<br />
346-
最後更新於 Aug 27, 2024 (04:09 UTC)。
346+
最後更新於 Aug 28, 2024 (13:21 UTC)。
347347

348348
<a href="/bugs.html">Found a bug</a>?
349349

c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ <h3>瀏覽</h3>
375375
<a href="https://www.python.org/psf/donations/">Please donate.</a>
376376
<br />
377377
<br />
378-
最後更新於 Aug 27, 2024 (04:09 UTC)。
378+
最後更新於 Aug 28, 2024 (13:21 UTC)。
379379

380380
<a href="/bugs.html">Found a bug</a>?
381381

c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ <h3>瀏覽</h3>
886886
<a href="https://www.python.org/psf/donations/">Please donate.</a>
887887
<br />
888888
<br />
889-
最後更新於 Aug 27, 2024 (04:09 UTC)。
889+
最後更新於 Aug 28, 2024 (13:21 UTC)。
890890

891891
<a href="/bugs.html">Found a bug</a>?
892892

c-api/bool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h3>瀏覽</h3>
340340
<a href="https://www.python.org/psf/donations/">Please donate.</a>
341341
<br />
342342
<br />
343-
最後更新於 Aug 27, 2024 (04:09 UTC)。
343+
最後更新於 Aug 28, 2024 (13:21 UTC)。
344344

345345
<a href="/bugs.html">Found a bug</a>?
346346

c-api/buffer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ <h3>瀏覽</h3>
10131013
<a href="https://www.python.org/psf/donations/">Please donate.</a>
10141014
<br />
10151015
<br />
1016-
最後更新於 Aug 27, 2024 (04:09 UTC)。
1016+
最後更新於 Aug 28, 2024 (13:21 UTC)。
10171017

10181018
<a href="/bugs.html">Found a bug</a>?
10191019

0 commit comments

Comments
 (0)