Skip to content

Commit 56d92fc

Browse files
authored
Merge branch 'main' into fix/bdb-clear-all-file-breaks
2 parents adb5c95 + acefff9 commit 56d92fc

66 files changed

Lines changed: 682 additions & 294 deletions

Some content is hidden

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

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ jobs:
3838
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
3939
- name: Install Homebrew dependencies
4040
run: |
41-
brew install pkg-config openssl@3.5 xz gdbm tcl-tk@9 make
42-
# Because alternate versions are not symlinked into place by default:
43-
brew link --overwrite tcl-tk@9
41+
brew bundle --file=Misc/Brewfile
42+
brew install make
4443
- name: Configure CPython
4544
run: |
4645
MACOSX_DEPLOYMENT_TARGET=10.15 \

Doc/library/codecs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ particular, the following variants typically exist:
11551155
+-----------------+--------------------------------+--------------------------------+
11561156
| cp857 | 857, IBM857 | Turkish |
11571157
+-----------------+--------------------------------+--------------------------------+
1158-
| cp858 | 858, IBM858 | Western Europe |
1158+
| cp858 | 858, IBM00858 | Western Europe |
11591159
+-----------------+--------------------------------+--------------------------------+
11601160
| cp860 | 860, IBM860 | Portuguese |
11611161
+-----------------+--------------------------------+--------------------------------+
@@ -1192,7 +1192,7 @@ particular, the following variants typically exist:
11921192
| | | |
11931193
| | | .. versionadded:: 3.4 |
11941194
+-----------------+--------------------------------+--------------------------------+
1195-
| cp1140 | ibm1140 | Western Europe |
1195+
| cp1140 | IBM01140 | Western Europe |
11961196
+-----------------+--------------------------------+--------------------------------+
11971197
| cp1250 | windows-1250 | Central and Eastern Europe |
11981198
+-----------------+--------------------------------+--------------------------------+

Doc/library/imaplib.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ An :class:`IMAP4` instance has the following methods:
199199

200200
Append *message* to named mailbox.
201201

202+
*flags* may be ``None`` or a string of IMAP flag tokens. Multiple
203+
flags are separated by spaces, for example ``r'\Seen \Answered'``.
204+
If *flags* is not already enclosed in parentheses, parentheses are
205+
added automatically.
206+
202207

203208
.. method:: IMAP4.authenticate(mechanism, authobject)
204209

Doc/library/multiprocessing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ To show the individual process IDs involved, here is an expanded example::
100100
For an explanation of why the ``if __name__ == '__main__'`` part is
101101
necessary, see :ref:`multiprocessing-programming`.
102102

103-
The arguments to :class:`Process` usually need to be unpickleable from within
104-
the child process. If you tried typing the above example directly into a REPL it
105-
could lead to an :exc:`AttributeError` in the child process trying to locate the
106-
*f* function in the ``__main__`` module.
103+
The arguments to :class:`Process` usually need to be picklable so they can be
104+
passed to the child process. If you tried typing the above example directly
105+
into a REPL it could lead to an :exc:`AttributeError` in the child process
106+
trying to locate the *f* function in the ``__main__`` module.
107107

108108

109109
.. _multiprocessing-start-methods:

Doc/library/select.rst

Lines changed: 135 additions & 125 deletions
Large diffs are not rendered by default.

Doc/tools/extensions/pydoc_topics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"in",
6969
"integers",
7070
"lambda",
71+
"lazy",
7172
"lists",
7273
"naming",
7374
"nonlocal",

Doc/whatsnew/3.16.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ mimetypes
141141
:meth:`mimetypes.MimeTypes.add_type`.
142142
Undotted extensions now raise a :exc:`ValueError`.
143143

144+
shutil
145+
------
146+
147+
* The :exc:`!ExecError` exception which has been deprecated since Python 3.14.
148+
It has not been used by any function in :mod:`!shutil` since Python 3.4.
149+
(Contributed by Stan Ulbrych in :gh:`149567`.)
150+
144151
symtable
145152
--------
146153

@@ -161,6 +168,7 @@ sysconfig
161168
* The :func:`!sysconfig.expand_makefile_vars` function
162169
which has been deprecated since Python 3.14.
163170
Use the ``vars`` argument of :func:`sysconfig.get_paths` instead.
171+
(Contributed by Stan Ulbrych in :gh:`149499`.)
164172

165173
tarfile
166174
-------

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111
# Import _thread instead of threading to reduce startup cost
1212
from _thread import allocate_lock as Lock
13-
if sys.platform in {'win32', 'cygwin'}:
13+
if sys.platform == 'win32':
1414
from msvcrt import setmode as _setmode
1515
else:
1616
_setmode = None

Lib/ctypes/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,11 @@ def LoadLibrary(self, name):
549549

550550
if _os.name == "nt":
551551
pythonapi = PyDLL("python dll", None, _sys.dllhandle)
552-
elif _sys.platform in ["android", "cygwin"]:
552+
elif _sys.platform == "android":
553553
# These are Unix-like platforms which use a dynamically-linked libpython.
554554
pythonapi = PyDLL(_sysconfig.get_config_var("LDLIBRARY"))
555+
elif _sys.platform == "cygwin":
556+
pythonapi = PyDLL(_sysconfig.get_config_var("DLLLIBRARY"))
555557
else:
556558
pythonapi = PyDLL(None)
557559

Lib/encodings/aliases.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171

7272
# cp1140 codec
7373
'1140' : 'cp1140',
74+
'cp01140' : 'cp1140',
75+
'csibm01140' : 'cp1140',
76+
'ebcdic_us_37_euro' : 'cp1140',
77+
'ibm01140' : 'cp1140',
7478
'ibm1140' : 'cp1140',
7579

7680
# cp1250 codec
@@ -159,8 +163,12 @@
159163

160164
# cp858 codec
161165
'858' : 'cp858',
166+
'cp00858' : 'cp858',
167+
'csibm00858' : 'cp858',
162168
'csibm858' : 'cp858',
169+
'ibm00858' : 'cp858',
163170
'ibm858' : 'cp858',
171+
'pc_multilingual_850_euro' : 'cp858',
164172

165173
# cp860 codec
166174
'860' : 'cp860',

0 commit comments

Comments
 (0)