Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 4016dd5

Browse files
author
Anselm Kruis
committed
Merge branch main into main-slp
2 parents ab63077 + 307d4cb commit 4016dd5

File tree

87 files changed

+1313
-1593
lines changed

Some content is hidden

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

87 files changed

+1313
-1593
lines changed

‎.github/appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 3.8build{build}
1+
version: 3.9build{build}
22
clone_depth: 5
33
branches:
44
only:

‎Doc/c-api/long.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
288288
If the value of *obj* is out of range for an :c:type:`unsigned long`,
289289
return the reduction of that value modulo ``ULONG_MAX + 1``.
290290
291-
Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
291+
Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to
292+
disambiguate.
292293
293294
.. versionchanged:: 3.8
294295
Use :meth:`__index__` if available.
@@ -307,7 +308,8 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
307308
If the value of *obj* is out of range for an :c:type:`unsigned long long`,
308309
return the reduction of that value modulo ``PY_ULLONG_MAX + 1``.
309310
310-
Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
311+
Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred`
312+
to disambiguate.
311313
312314
.. versionchanged:: 3.8
313315
Use :meth:`__index__` if available.

‎Doc/library/bdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ The :mod:`bdb` module also defines two classes:
343343

344344
For backwards compatibility. Calls the :meth:`run` method.
345345

346-
.. method:: runcall(func, *args, **kwds)
346+
.. method:: runcall(func, /, *args, **kwds)
347347

348348
Debug a single function call, and return its result.
349349

‎Doc/library/codecs.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,8 @@ particular, the following variants typically exist:
11981198
+-----------------+--------------------------------+--------------------------------+
11991199
| mac_iceland | maciceland | Icelandic |
12001200
+-----------------+--------------------------------+--------------------------------+
1201-
| mac_latin2 | maclatin2, maccentraleurope | Central and Eastern Europe |
1201+
| mac_latin2 | maclatin2, maccentraleurope, | Central and Eastern Europe |
1202+
| | mac_centeuro | |
12021203
+-----------------+--------------------------------+--------------------------------+
12031204
| mac_roman | macroman, macintosh | Western Europe |
12041205
+-----------------+--------------------------------+--------------------------------+

‎Doc/library/concurrent.futures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Executor Objects
2828
An abstract class that provides methods to execute calls asynchronously. It
2929
should not be used directly, but through its concrete subclasses.
3030

31-
.. method:: submit(fn, *args, **kwargs)
31+
.. method:: submit(fn, /, *args, **kwargs)
3232

3333
Schedules the callable, *fn*, to be executed as ``fn(*args **kwargs)``
3434
and returns a :class:`Future` object representing the execution of the

‎Doc/library/contextlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Functions and classes provided:
416416
The passed in object is returned from the function, allowing this
417417
method to be used as a function decorator.
418418

419-
.. method:: callback(callback, *args, **kwds)
419+
.. method:: callback(callback, /, *args, **kwds)
420420

421421
Accepts an arbitrary callback function and arguments and adds it to
422422
the callback stack.
@@ -473,7 +473,7 @@ Functions and classes provided:
473473
Similar to :meth:`push` but expects either an asynchronous context manager
474474
or a coroutine function.
475475

476-
.. method:: push_async_callback(callback, *args, **kwds)
476+
.. method:: push_async_callback(callback, /, *args, **kwds)
477477

478478
Similar to :meth:`callback` but expects a coroutine function.
479479

‎Doc/library/curses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ The module :mod:`curses` defines the following functions:
656656
foreground color on the default background.
657657

658658

659-
.. function:: wrapper(func, ...)
659+
.. function:: wrapper(func, /, *args, **kwargs)
660660

661661
Initialize curses and call another callable object, *func*, which should be the
662662
rest of your curses-using application. If the application raises an exception,

‎Doc/library/functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,11 +1562,11 @@ are always available. They are listed here in alphabetical order.
15621562
about strings, see :ref:`textseq`.
15631563

15641564

1565-
.. function:: sum(iterable[, start])
1565+
.. function:: sum(iterable, /, start=0)
15661566

15671567
Sums *start* and the items of an *iterable* from left to right and returns the
1568-
total. *start* defaults to ``0``. The *iterable*'s items are normally numbers,
1569-
and the start value is not allowed to be a string.
1568+
total. The *iterable*'s items are normally numbers, and the start value is not
1569+
allowed to be a string.
15701570

15711571
For some use cases, there are good alternatives to :func:`sum`.
15721572
The preferred, fast way to concatenate a sequence of strings is by calling

‎Doc/library/multiprocessing.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ to start a process. These *start methods* are
126126

127127
.. versionchanged:: 3.8
128128

129-
On macOS, *spawn* start method is now the default: *fork* start method is no
130-
longer reliable on macOS, see :issue:`33725`.
129+
On macOS, the *spawn* start method is now the default. The *fork* start
130+
method should be considered unsafe as it can lead to crashes of the
131+
subprocess. See :issue:`33725`.
131132

132133
.. versionchanged:: 3.4
133134
*spawn* added on all unix platforms, and *forkserver* added for
@@ -2279,6 +2280,10 @@ with the :class:`Pool` class.
22792280
Return whether the call completed without raising an exception. Will
22802281
raise :exc:`AssertionError` if the result is not ready.
22812282

2283+
.. versionchanged:: 3.7
2284+
If the result is not ready, :exc:`ValueError` is raised instead of
2285+
:exc:`AssertionError`.
2286+
22822287
The following example demonstrates the use of a pool::
22832288

22842289
from multiprocessing import Pool

‎Doc/library/os.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,6 +3011,13 @@ features:
30113011
(or a bitwise ORed combination of them). By default, the new file
30123012
descriptor is :ref:`non-inheritable <fd_inheritance>`.
30133013

3014+
The name supplied in *name* is used as a filename and will be displayed as
3015+
the target of the corresponding symbolic link in the directory
3016+
``/proc/self/fd/``. The displayed name is always prefixed with ``memfd:``
3017+
and serves only for debugging purposes. Names do not affect the behavior of
3018+
the file descriptor, and as such multiple files can have the same name
3019+
without any side effects.
3020+
30143021
.. availability:: Linux 3.17 or newer with glibc 2.27 or newer.
30153022

30163023
.. versionadded:: 3.8

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /