Skip to content

Commit 71ea00a

Browse files
committed
Merge remote-tracking branch 'upstream/main' into gh-139269
2 parents 3ddbcf2 + d0b18b1 commit 71ea00a

Some content is hidden

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

51 files changed

+1379
-1070
lines changed

Doc/c-api/bytes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Create, Finish, Discard
260260
writer size to *size*. The caller is responsible to write *size*
261261
bytes using :c:func:`PyBytesWriter_GetData`.
262262
263-
On error, set an exception and return NULL.
263+
On error, set an exception and return ``NULL``.
264264
265265
*size* must be positive or zero.
266266

Doc/c-api/tuple.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ Tuple Objects
3737
or ``NULL`` with an exception set on failure.
3838
3939
40+
.. c:function:: PyObject* PyTuple_FromArray(PyObject *const *array, Py_ssize_t size)
41+
42+
Create a tuple of *size* items and copy references from *array* to the new
43+
tuple.
44+
45+
*array* can be NULL if *size* is ``0``.
46+
47+
On success, return a new reference.
48+
On error, set an exception and return ``NULL``.
49+
50+
.. versionadded:: next
51+
52+
4053
.. c:function:: PyObject* PyTuple_Pack(Py_ssize_t n, ...)
4154
4255
Return a new tuple object of size *n*,

Doc/library/crypt.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ being deprecated in Python 3.11. The removal was decided in :pep:`594`.
1313

1414
Applications can use the :mod:`hashlib` module from the standard library.
1515
Other possible replacements are third-party libraries from PyPI:
16-
:pypi:`legacycrypt`, :pypi:`bcrypt`, :pypi:`argon2-cffi`, or :pypi:`passlib`.
16+
:pypi:`legacycrypt`, :pypi:`bcrypt`, or :pypi:`argon2-cffi`.
1717
These are not supported or maintained by the Python core team.
1818

1919
The last version of Python that provided the :mod:`!crypt` module was

Doc/library/os.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4592,6 +4592,8 @@ written in Python, such as a mail server's external command delivery program.
45924592
master end of the pseudo-terminal. For a more portable approach, use the
45934593
:mod:`pty` module. If an error occurs :exc:`OSError` is raised.
45944594

4595+
The returned file descriptor *fd* is :ref:`non-inheritable <fd_inheritance>`.
4596+
45954597
.. audit-event:: os.forkpty "" os.forkpty
45964598

45974599
.. warning::
@@ -4608,6 +4610,9 @@ written in Python, such as a mail server's external command delivery program.
46084610
threads, this now raises a :exc:`DeprecationWarning`. See the
46094611
longer explanation on :func:`os.fork`.
46104612

4613+
.. versionchanged:: next
4614+
The returned file descriptor is now made non-inheritable.
4615+
46114616
.. availability:: Unix, not WASI, not Android, not iOS.
46124617

46134618

Doc/library/pty.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ The :mod:`pty` module defines the following functions:
3333
file descriptor connected to the child's controlling terminal (and also to the
3434
child's standard input and output).
3535

36+
The returned file descriptor *fd* is :ref:`non-inheritable <fd_inheritance>`.
37+
3638
.. warning:: On macOS the use of this function is unsafe when mixed with using
3739
higher-level system APIs, and that includes using :mod:`urllib.request`.
3840

41+
.. versionchanged:: next
42+
The returned file descriptor is now made non-inheritable.
43+
3944

4045
.. function:: openpty()
4146

Doc/library/signal.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ The variables defined in the :mod:`signal` module are:
205205

206206
.. availability:: Unix.
207207

208+
.. data:: SIGQUIT
209+
210+
Terminal quit signal.
211+
212+
.. availability:: Unix.
213+
208214
.. data:: SIGSEGV
209215

210216
Segmentation fault: invalid memory reference.

Doc/library/sysconfig.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ Other functions
382382

383383
Examples of returned values:
384384

385+
- linux-x86_64
386+
- linux-aarch64
387+
- solaris-2.6-sun4u
385388

386389
Windows:
387390

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ without the dedicated syntax, as documented below.
22692269

22702270
.. attribute:: __module__
22712271

2272-
The module in which the type alias was defined::
2272+
The name of the module in which the type alias was defined::
22732273

22742274
>>> type Alias = int
22752275
>>> Alias.__module__
@@ -2449,7 +2449,7 @@ types.
24492449

24502450
.. attribute:: __module__
24512451

2452-
The module in which the new type is defined.
2452+
The name of the module in which the new type is defined.
24532453

24542454
.. attribute:: __name__
24552455

Doc/using/configure.rst

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,51 @@ Features and minimum versions required to build CPython:
2222

2323
* Support for threads.
2424

25-
* OpenSSL 1.1.1 is the minimum version and OpenSSL 3.0.18 is the recommended
26-
minimum version for the :mod:`ssl` and :mod:`hashlib` extension modules.
25+
To build optional modules:
2726

28-
* SQLite 3.15.2 for the :mod:`sqlite3` extension module.
27+
* `libbz2 <https://sourceware.org/bzip2/>`_ for the :mod:`bz2` module.
2928

30-
* Tcl/Tk 8.5.12 for the :mod:`tkinter` module.
29+
* `libb2 <https://github.com/BLAKE2/libb2>`_ (:ref:`BLAKE2 <hashlib-blake2>`),
30+
used by :mod:`hashlib` module.
31+
32+
* `libffi <https://sourceware.org/libffi/>`_ 3.3.0 is the recommended
33+
minimum version for the :mod:`ctypes` module.
34+
35+
* ``liblzma``, for the :mod:`lzma` module.
3136

3237
* `libmpdec <https://www.bytereef.org/mpdecimal/doc/libmpdec/>`_ 2.5.0
3338
for the :mod:`decimal` module.
3439

40+
* ``libncurses`` or ``libncursesw``,
41+
for the :mod:`curses` module.
42+
43+
* ``libpanel`` or ``libpanelw``,
44+
for the :mod:`curses.panel` module.
45+
46+
* `libreadline <https://tiswww.case.edu/php/chet/readline/rltop.html>`_ or
47+
`libedit <https://www.thrysoee.dk/editline/>`_
48+
for the :mod:`readline` module.
49+
50+
* `libuuid <https://linux.die.net/man/3/libuuid>`_, for the :mod:`uuid` module.
51+
52+
* `OpenSSL <https://www.openssl.org/>`_ 1.1.1 is the minimum version and
53+
OpenSSL 3.0.18 is the recommended minimum version for the
54+
:mod:`ssl` and :mod:`hashlib` extension modules.
55+
56+
* `SQLite <https://sqlite.org/>`_ 3.15.2 for the :mod:`sqlite3` extension module.
57+
58+
* `Tcl/Tk <https://www.tcl-lang.org/>`_ 8.5.12 for the :mod:`tkinter` module.
59+
60+
* `zlib <https://www.zlib.net>`_ 1.1.4 is the reccomended minimum version for the
61+
:mod:`zlib` module.
62+
63+
* `zstd <https://facebook.github.io/zstd/>`_ 1.4.5 is the minimum version for
64+
the :mod:`compression.zstd` module.
65+
66+
For a full list of dependencies required to build all modules and how to install
67+
them, see the
68+
`devguide <https://devguide.python.org/getting-started/setup-building/#install-dependencies>`_.
69+
3570
* Autoconf 2.72 and aclocal 1.16.5 are required to regenerate the
3671
:file:`configure` script.
3772

Doc/whatsnew/3.13.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,8 +1569,6 @@ and are now removed:
15691569

15701570
* :pypi:`bcrypt`:
15711571
Modern password hashing for your software and your servers.
1572-
* :pypi:`passlib`:
1573-
Comprehensive password hashing framework supporting over 30 schemes.
15741572
* :pypi:`argon2-cffi`:
15751573
The secure Argon2 password hashing algorithm.
15761574
* :pypi:`legacycrypt`:

0 commit comments

Comments
 (0)