Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 75023cf

Browse files
author
Anselm Kruis
committed
merge branch 3.5 just after tagging v3.5.0rc1
2 parents 6f3609a + bb8a52a commit 75023cf

File tree

316 files changed

+30870
-25020
lines changed

Some content is hidden

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

316 files changed

+30870
-25020
lines changed

.hgtags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,6 @@ b4cbecbc0781e89a309d03b60a1f75f8499250e6 v3.4.3
171171
413e0e0004f4f954331cb8122aa55fe208984955 v3.5.0a4
172172
071fefbb5e3db770c6c19fba9994699f121b1cea v3.5.0b1
173173
7a088af5615bf04024e9912068f4bd8f43ed3917 v3.5.0b2
174+
0035fcd9b9243ae52c2e830204fd9c1f7d528534 v3.5.0b3
175+
c0d64105463581f85d0e368e8d6e59b7fd8f12b1 v3.5.0b4
176+
1a58b1227501e046eee13d90f113417b60843301 v3.5.0rc1

Doc/c-api/buffer.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
9696
block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
9797
the value may point to the end of the memory block.
9898

99-
For contiguous arrays, the value points to the beginning of the memory
100-
block.
99+
For :term:`contiguous` arrays, the value points to the beginning of
100+
the memory block.
101101

102102
.. c:member:: void \*obj
103103
@@ -281,11 +281,14 @@ of the flags below it.
281281
+-----------------------------+-------+---------+------------+
282282

283283

284+
.. index:: contiguous, C-contiguous, Fortran contiguous
285+
284286
contiguity requests
285287
~~~~~~~~~~~~~~~~~~~
286288

287-
C or Fortran contiguity can be explicitly requested, with and without stride
288-
information. Without stride information, the buffer must be C-contiguous.
289+
C or Fortran :term:`contiguity <contiguous>` can be explicitly requested,
290+
with and without stride information. Without stride information, the buffer
291+
must be C-contiguous.
289292

290293
.. tabularcolumns:: |p{0.35\linewidth}|l|l|l|l|
291294

@@ -466,13 +469,13 @@ Buffer-related functions
466469
.. c:function:: int PyBuffer_IsContiguous(Py_buffer *view, char order)
467470
468471
Return 1 if the memory defined by the *view* is C-style (*order* is
469-
``'C'``) or Fortran-style (*order* is ``'F'``) contiguous or either one
472+
``'C'``) or Fortran-style (*order* is ``'F'``) :term:`contiguous` or either one
470473
(*order* is ``'A'``). Return 0 otherwise.
471474
472475
473476
.. c:function:: void PyBuffer_FillContiguousStrides(int ndim, Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t itemsize, char order)
474477
475-
Fill the *strides* array with byte-strides of a contiguous (C-style if
478+
Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style if
476479
*order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the
477480
given shape with the given number of bytes per element.
478481

Doc/c-api/exceptions.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,12 +683,12 @@ recursion depth automatically).
683683
sets a :exc:`MemoryError` and returns a nonzero value.
684684
685685
The function then checks if the recursion limit is reached. If this is the
686-
case, a :exc:`RuntimeError` is set and a nonzero value is returned.
686+
case, a :exc:`RecursionError` is set and a nonzero value is returned.
687687
Otherwise, zero is returned.
688688
689689
*where* should be a string such as ``" in instance check"`` to be
690-
concatenated to the :exc:`RuntimeError` message caused by the recursion depth
691-
limit.
690+
concatenated to the :exc:`RecursionError` message caused by the recursion
691+
depth limit.
692692
693693
.. c:function:: void Py_LeaveRecursiveCall()
694694
@@ -800,6 +800,8 @@ the variables:
800800
+-----------------------------------------+---------------------------------+----------+
801801
| :c:data:`PyExc_ProcessLookupError` | :exc:`ProcessLookupError` | |
802802
+-----------------------------------------+---------------------------------+----------+
803+
| :c:data:`PyExc_RecursionError` | :exc:`RecursionError` | |
804+
+-----------------------------------------+---------------------------------+----------+
803805
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | \(2) |
804806
+-----------------------------------------+---------------------------------+----------+
805807
| :c:data:`PyExc_RuntimeError` | :exc:`RuntimeError` | |
@@ -829,6 +831,9 @@ the variables:
829831
:c:data:`PyExc_PermissionError`, :c:data:`PyExc_ProcessLookupError`
830832
and :c:data:`PyExc_TimeoutError` were introduced following :pep:`3151`.
831833
834+
.. versionadded:: 3.5
835+
:c:data:`PyExc_RecursionError`.
836+
832837
833838
These are compatibility aliases to :c:data:`PyExc_OSError`:
834839
@@ -877,6 +882,7 @@ These are compatibility aliases to :c:data:`PyExc_OSError`:
877882
single: PyExc_OverflowError
878883
single: PyExc_PermissionError
879884
single: PyExc_ProcessLookupError
885+
single: PyExc_RecursionError
880886
single: PyExc_ReferenceError
881887
single: PyExc_RuntimeError
882888
single: PyExc_SyntaxError

Doc/c-api/init.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ been created.
873873
instead.
874874
875875
876+
.. _sub-interpreter-support:
877+
876878
Sub-interpreter support
877879
=======================
878880

Doc/c-api/memoryview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ any other object.
3535
3636
.. c:function:: PyObject *PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char order)
3737
38-
Create a memoryview object to a contiguous chunk of memory (in either
38+
Create a memoryview object to a :term:`contiguous` chunk of memory (in either
3939
'C' or 'F'ortran *order*) from an object that defines the buffer
4040
interface. If memory is contiguous, the memoryview object points to the
4141
original memory. Otherwise, a copy is made and the memoryview points to a

0 commit comments

Comments
 (0)