]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Irit Katriel [Thu, 5 May 2022 16:39:33 +0000 (12:39 -0400)]
gh-92118: Add test for traceback when exception is modified by (Async)ExitStack.__exit__ (GH-92339)
Soumendra Ganguly [Thu, 5 May 2022 16:04:44 +0000 (11:04 -0500)]
bpo-41818: Add os.login_tty() for *nix. (#29658)
* Add `os.login_tty(fd)` for Unix.
Reviewed-by: Christian Heimes <christian@python.org>
Signed-off-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Vlad Hoi [Thu, 5 May 2022 13:40:01 +0000 (16:40 +0300)]
bpo-43827: Make arguments to abc.ABCMeta.__new__ pos-only (#25385)
To avoid conflicts with `__init__subclass__`.
Géry Ogam [Thu, 5 May 2022 13:37:26 +0000 (15:37 +0200)]
bpo-43857: Improve the AttributeError message when deleting a missing attribute (#25424)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Robert Howlett [Thu, 5 May 2022 09:33:35 +0000 (10:33 +0100)]
gh-92047: Py_GetVersion multi-digit minor version (GH-92047) (#92048)
Victor Stinner [Thu, 5 May 2022 09:31:59 +0000 (11:31 +0200)]
gh-89653: PEP 670: Convert PyCFunction macros to functions (#92302)
Convert the following macros to static inline functions:
* PyCFunction_GET_CLASS()
* PyCFunction_GET_FLAGS()
* PyCFunction_GET_FUNCTION()
* PyCFunction_GET_SELF()
Limited C API version 3.11 no longer casts arguments.
Raymond Hettinger [Thu, 5 May 2022 08:01:07 +0000 (03:01 -0500)]
Clean-up and simplify median_grouped(). Vastly improve its docstring. (#92324)
DjMorgul [Thu, 5 May 2022 05:32:49 +0000 (07:32 +0200)]
Allow translating argument error messages (#17169)
Michael J. Sullivan [Thu, 5 May 2022 04:00:21 +0000 (21:00 -0700)]
bpo-46764: Fix wrapping bound method with @classmethod (#31367)
Sebastian Rittau [Thu, 5 May 2022 00:14:07 +0000 (02:14 +0200)]
gh-92223: Remove pre-Python 3.7 alternative in asyncio docs (#92224)
Irit Katriel [Wed, 4 May 2022 18:40:47 +0000 (14:40 -0400)]
gh-92118: fix traceback of exceptions propagated from inside a contextlib.contextmanager (GH-92202)
Mark Shannon [Wed, 4 May 2022 15:31:21 +0000 (09:31 -0600)]
GH-92239: Make sure that PEP 523 is supported, even when specializing first. (GH-92245)
Serhiy Storchaka [Wed, 4 May 2022 14:06:50 +0000 (17:06 +0300)]
gh-92107: Add tests that subscription works on arbitrary named tuple types (GH-92304)
Joshua Herman [Wed, 4 May 2022 13:38:01 +0000 (07:38 -0600)]
gh-92210: Move socket.__init__ to argument clinic (#92237)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Erlend Egeberg Aasland [Wed, 4 May 2022 13:16:01 +0000 (07:16 -0600)]
gh-89022: Improve sqlite3 exceptions related to binding params and API misuse (#91572)
* Map SQLITE_MISUSE to sqlite3.InterfaceError
SQLITE_MISUSE implies misuse of the SQLite C API, which, if it happens,
is _not_ a user error; it is an sqlite3 extension module error.
* Raise better errors when binding parameters fail.
Instead of always raising InterfaceError, guessing what went wrong,
raise accurate exceptions with more accurate error messages.
Victor Stinner [Wed, 4 May 2022 11:30:23 +0000 (13:30 +0200)]
Use static inline function Py_EnterRecursiveCall() (#91988)
Currently, calling Py_EnterRecursiveCall() and
Py_LeaveRecursiveCall() may use a function call or a static inline
function call, depending if the internal pycore_ceval.h header file
is included or not. Use a different name for the static inline
function to ensure that the static inline function is always used in
Python internals for best performance. Similar approach than
PyThreadState_GET() (function call) and _PyThreadState_GET() (static
inline function).
* Rename _Py_EnterRecursiveCall() to _Py_EnterRecursiveCallTstate()
* Rename _Py_LeaveRecursiveCall() to _Py_LeaveRecursiveCallTstate()
* pycore_ceval.h: Rename Py_EnterRecursiveCall() to
_Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() and
_Py_LeaveRecursiveCall()
Victor Stinner [Wed, 4 May 2022 09:59:01 +0000 (11:59 +0200)]
gh-92036: Fix gc_fini_untrack() (#92037)
Fix a crash in subinterpreters related to the garbage collector. When
a subinterpreter is deleted, untrack all objects tracked by its GC.
To prevent a crash in deallocator functions expecting objects to be
tracked by the GC, leak a strong reference to these objects on
purpose, so they are never deleted and their deallocator functions
are not called.
Raymond Hettinger [Wed, 4 May 2022 04:22:04 +0000 (23:22 -0500)]
Fix renamed "total" variable (#92287)
* Fix renamed "total" variable
* Keep nan/inf handling consistent between versions
Carl Meyer [Wed, 4 May 2022 03:38:29 +0000 (21:38 -0600)]
Fix typo in Sorting howto (#92280)
The phrase is usually "odds and ends," not "odd and ends."
Sam Denton [Wed, 4 May 2022 03:36:52 +0000 (22:36 -0500)]
gh-67248: cmd: Sort miscellaneous help topics (#92254)
Closes #67248
Raymond Hettinger [Wed, 4 May 2022 02:22:26 +0000 (21:22 -0500)]
Compute from_sample() in a single pass over the data (#92284)
Inada Naoki [Wed, 4 May 2022 01:01:15 +0000 (10:01 +0900)]
gh-78214: marshal: Stabilize FLAG_REF usage (GH-8226)
Use FLAG_REF always for interned strings.
Refcounts of interned string is very unstable.
When compiling same source, refcounts of interned string in the output may be 1 or >1.
It makes FLAG_REF usage unstable.
To help reproducible build, use FLAG_REF for interned string even if refcnt(obj)==1.
Géry Ogam [Tue, 3 May 2022 23:49:57 +0000 (01:49 +0200)]
bpo-47029: Fix BrokenPipeError in multiprocessing.Queue at garbage collection and explicit close (#31913)
Erlend Egeberg Aasland [Tue, 3 May 2022 23:03:06 +0000 (17:03 -0600)]
gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#29054)
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Mark Shannon [Tue, 3 May 2022 22:40:24 +0000 (16:40 -0600)]
Add more stats for freelist use and allocations. (GH-92211)
Kumar Aditya [Tue, 3 May 2022 22:20:13 +0000 (03:50 +0530)]
GH-91173: disable frozen modules in debug builds (#92023)
Kabir Kwatra [Tue, 3 May 2022 22:14:25 +0000 (15:14 -0700)]
gh-91928: Add `datetime.UTC` alias for `datetime.timezone.utc` (GH-91973)
### fixes #91928
`UTC` is now module attribute aliased to `datetime.timezone.utc`.
You can now do the following:
```python
from datetime import UTC
```
Robert Yang [Tue, 3 May 2022 22:08:05 +0000 (16:08 -0600)]
gh-87304: Improve comments in language reference for imports (#92164)
Erlend Egeberg Aasland [Tue, 3 May 2022 22:07:11 +0000 (16:07 -0600)]
gh-92206: Improve scoping of sqlite3 statement helper (#92260)
Jelle Zijlstra [Tue, 3 May 2022 21:49:21 +0000 (15:49 -0600)]
Improve the typing docs (#92264)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Eric Snow [Tue, 3 May 2022 21:44:52 +0000 (15:44 -0600)]
gh-81057: Fix indent. (gh-92267)
kixorz [Tue, 3 May 2022 21:17:57 +0000 (16:17 -0500)]
bpo-45639: Add webp and avif image formats to mimetypes (#29259)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Zac Hatfield-Dodds [Tue, 3 May 2022 20:52:30 +0000 (14:52 -0600)]
gh-92062: `inspect.Parameter` checks whether `name` is a keyword (GH-92065)
Fixes #92062.
Victor Stinner [Tue, 3 May 2022 20:40:20 +0000 (22:40 +0200)]
gh-91321: Fix PyModuleDef_HEAD_INIT on C++ (#92259)
The PyModuleDef_HEAD_INIT macro now uses _Py_NULL to fix C++ compiler
warnings when using it in C++.
Erlend Egeberg Aasland [Tue, 3 May 2022 20:21:56 +0000 (14:21 -0600)]
gh-89289: Fix compiler warning in _sqlite/connection.c (#92258)
Erlend Egeberg Aasland [Tue, 3 May 2022 20:00:39 +0000 (14:00 -0600)]
gh-92206: Improve scoping of sqlite3 bind param functions (#92250)
Victor Stinner [Tue, 3 May 2022 19:42:14 +0000 (21:42 +0200)]
gh-91320: Use _PyCFunction_CAST() (#92251)
Replace "(PyCFunction)(void(*)(void))func" cast with
_PyCFunction_CAST(func).
Change generated by the command:
sed -i -e \
's!(PyCFunction)(void(\*)(void)) *\([A-Za-z0-9_]\+\)!_PyCFunction_CAST(\1)!g' \
$(find -name "*.c")
Victor Stinner [Tue, 3 May 2022 19:38:37 +0000 (21:38 +0200)]
gh-91321: Add _Py_NULL macro (#92253)
Fix C++ compiler warnings: "zero as null pointer constant"
(clang -Wzero-as-null-pointer-constant).
* Add the _Py_NULL macro used by static inline functions to use
nullptr in C++.
* Replace NULL with nullptr in _testcppext.cpp.
Eric Snow [Tue, 3 May 2022 19:18:27 +0000 (13:18 -0600)]
gh-81057: Get the c-analyzer tool working again. (gh-92246)
Thaddeus1499 [Tue, 3 May 2022 19:17:43 +0000 (15:17 -0400)]
gh-90172: add test for functools.singledispatch on Union types with None type (#92174)
Signed-off-by: prwatson <prwatson@redhat.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Victor Stinner [Tue, 3 May 2022 18:47:29 +0000 (20:47 +0200)]
gh-91320: Fix more old-style cast warnings in C++ (#92247)
Use _Py_CAST(), _Py_STATIC_CAST() and _PyASCIIObject_CAST() in
static inline functions to fix C++ compiler warnings:
"use of old-style cast" (clang -Wold-style-cast).
test_cppext now builds the C++ test extension with -Wold-style-cast.
Victor Stinner [Tue, 3 May 2022 18:25:41 +0000 (20:25 +0200)]
gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210)
Replace "(PyCFunction)(void(*)(void))func" cast with
_PyCFunction_CAST(func).
Erlend Egeberg Aasland [Tue, 3 May 2022 18:18:11 +0000 (12:18 -0600)]
gh-89289: Harden sqlite3.Connection init (#92214)
- Make sure SQLite resources are freed if database open fails
- Remove unneeded branches if init is aborted
Victor Stinner [Tue, 3 May 2022 18:14:58 +0000 (20:14 +0200)]
gh-89653: PEP 670: Convert PyBytes macros to functions (#91990)
Convert the following macros to static inline functions:
* PyByteArray_AS_STRING()
* PyByteArray_GET_SIZE()
* PyBytes_AS_STRING()
* PyBytes_GET_SIZE()
Limited C API version 3.11 no longer casts arguments.
Add _PyBytes_CAST() and _PyByteArray_CAST() macros.
Erlend Egeberg Aasland [Tue, 3 May 2022 17:48:24 +0000 (11:48 -0600)]
gh-92206: Improve scoping of sqlite3 reset statement helper (#92241)
David CARLIER [Tue, 3 May 2022 17:33:11 +0000 (18:33 +0100)]
bpo-46696: Add socket.SO_INCOMING_CPU constant (#31237)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Humbled Drugman [Tue, 3 May 2022 17:21:24 +0000 (18:21 +0100)]
bpo-29890: Test IPv*Interface construction with tuple argument (#30862)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Abhigyan Bose [Tue, 3 May 2022 17:19:54 +0000 (22:49 +0530)]
GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758)
Fixes GH-91752.
Toshio Kuratomi [Tue, 3 May 2022 16:38:18 +0000 (09:38 -0700)]
gh-88753: Make BooleanOptionalAction's addition of default to help more similar to other actions (#27808)
Help for other actions omit the default value if default is SUPPRESS or
already contains the special format string '%(default)'. Add those
special cases to BooleanOptionalAction's help formatting too.
Fixes https://bugs.python.org/issue44587 so that default=SUPPRESS is not
emitted.
Fixes https://bugs.python.org/issue38956 as this code will detect
whether '%(default)s' has already been specified in the help string.
Signed-off-by: Micky Yun Chan (michiboo): <chanmickyyun@gmail.com>
Co-authored-by: Micky Yun Chan <michan@redhat.com>
Łukasz Langa [Tue, 3 May 2022 16:27:38 +0000 (18:27 +0200)]
gh-89452: Prefer gdbm-compat over ndbm (#92208)
This makes macOS gdbm provided by Homebrew not segfault through correct
selection of the linked library (-lgdbm_compat) *AND* the correct ndbm-style
header (gdbm-ndbm.h instead of the invalid ndbm.h).
Kossi GLOKPOR [Tue, 3 May 2022 15:56:24 +0000 (15:56 +0000)]
bpo-46604: fix function name in ssl module docstring (#31064)
The function fetch_server_certificate is replaced by get_server_certificate in the module. I reflected the change in the module docstrings.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Dennis Sweeney [Tue, 3 May 2022 14:59:12 +0000 (10:59 -0400)]
gh-92031: Deoptimize Static Code at Finalization (GH-92039)
David CARLIER [Tue, 3 May 2022 14:53:51 +0000 (15:53 +0100)]
gh-90887: posix module: Add more flags for fcopy_file (#31300)
Closes #90887
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Ma Lin [Tue, 3 May 2022 14:41:45 +0000 (22:41 +0800)]
GH-91355: micro-optimize Connection.send_bytes() method (gh-32247)
slateny [Tue, 3 May 2022 14:40:36 +0000 (07:40 -0700)]
Link to GitHub instead of BPO for CPython bug tracker (GH-92221)
Victor Stinner [Tue, 3 May 2022 14:37:06 +0000 (16:37 +0200)]
gh-92135: Rename _Py_reinterpret_cast() to _Py_CAST() (#92230)
Rename also _Py_static_cast() to _Py_STATIC_CAST().
Samodya Abey [Tue, 3 May 2022 13:21:42 +0000 (18:51 +0530)]
bpo-44863: Allow generic typing.TypedDict (#27663)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Ken Jin [Tue, 3 May 2022 13:13:13 +0000 (20:13 +0700)]
gh-92154: Expose PyCode_GetCode in the C API (GH-92168)
Erlend Egeberg Aasland [Tue, 3 May 2022 12:33:24 +0000 (06:33 -0600)]
gh-92206: Improve scoping of sqlite3 register cursor helper (#92212)
Hugo van Kemenade [Tue, 3 May 2022 12:33:03 +0000 (15:33 +0300)]
Dependabot: only bump actions for major versions (#92186)
Carey Metcalfe [Tue, 3 May 2022 12:18:18 +0000 (08:18 -0400)]
gh-70363: Implement `io.IOBase` interface for `SpooledTemporaryFile` (GH-29560)
Since the underlying file-like objects (either `io.BytesIO`,
or a true file object) all implement the `io.IOBase`
interface, the `SpooledTemporaryFile` should as well.
Additionally, since the underlying file object will either be an
instance of an `io.BufferedIOBase` (for binary mode) or an
`io.TextIOBase` (for text mode), methods for these classes were also
implemented.
In every case, the required methods and properties are simply delegated
to the underlying file object.
Co-authored-by: Gary Fernie <Gary.Fernie@skyscanner.net>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Thomas Cellerier [Tue, 3 May 2022 12:12:58 +0000 (14:12 +0200)]
bpo-46415: Use f-string for ValueError in ipaddress.ip_{address,network,interface} helper functions (#30642)
`IPv*Network` and `IPv*Interface` constructors accept a 2-tuple of
(address description, netmask) as the address parameter.
When the tuple-based address is used errors are not propagated
correctly through the `ipaddress.ip_*` helper because of the %-formatting now expecting several arguments:
In [7]: ipaddress.ip_network(("192.168.100.0", "fooo"))
...
TypeError: not all arguments converted during string formatting
Compared to:
In [8]: ipaddress.IPv4Network(("192.168.100.0", "foo"))
...
NetmaskValueError: 'foo' is not a valid netmask
Use an f-string to make sure the error is always properly formatted.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Raymond Hettinger [Tue, 3 May 2022 08:41:46 +0000 (03:41 -0500)]
The stdev calculation is more accurate computing its own mean (#92220)
Hugo van Kemenade [Tue, 3 May 2022 07:17:54 +0000 (10:17 +0300)]
gh-92169: Use warnings_helper.import_deprecated() to import deprecated modules uniformly in tests (GH-92170)
Ken Jin [Tue, 3 May 2022 06:49:06 +0000 (13:49 +0700)]
Fix doc warnings in What's New in 3.11 (GH-92215)
Ruben Vorderman [Tue, 3 May 2022 05:11:06 +0000 (07:11 +0200)]
bpo-46267: Test compresslevel in gzip.compress (#30416)
Fixes #90425
Erlend Egeberg Aasland [Tue, 3 May 2022 03:45:04 +0000 (21:45 -0600)]
gh-92206: Move pysqlite_step() to Modules/_sqlite/cursor.c (#92207)
Itai Steinherz [Mon, 2 May 2022 23:19:13 +0000 (02:19 +0300)]
bpo-46785: Fix race condition between os.stat() and unlink on Windows (GH-31858)
Shantanu [Mon, 2 May 2022 23:08:28 +0000 (17:08 -0600)]
gh-91621: Fix typing.get_type_hints for collections.abc.Callable (#91656)
This mirrors logic in typing.get_args. The trickiness comes from how we
flatten args in collections.abc.Callable, see
https://bugs.python.org/issue42195
Ethan Smith [Mon, 2 May 2022 22:51:34 +0000 (15:51 -0700)]
gh-84461: Add ability for multiprocessed libregrtest to use a different Python executable (GH-91930)
Serhiy Storchaka [Mon, 2 May 2022 22:41:23 +0000 (01:41 +0300)]
bpo-43923: Add support for generic typing.NamedTuple (#92027)
Serhiy Storchaka [Mon, 2 May 2022 22:38:39 +0000 (01:38 +0300)]
gh-92106: Add test that subscription works on arbitrary TypedDicts (#92176)
kbeldan [Mon, 2 May 2022 22:36:29 +0000 (22:36 +0000)]
gh-92032: Add soft keywords to rlcompleter (#92029)
Let the interpreter autocomplete soft-keywords, ATM the PEP-634 'match'
/ 'case' / '_' (wildcard pattern).
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Meer Suri [Mon, 2 May 2022 22:32:44 +0000 (06:32 +0800)]
bpo-46586: Fix more erroneous doc links to builtins (#31429)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Thomas Miedema [Mon, 2 May 2022 22:29:03 +0000 (00:29 +0200)]
Delete outdated comment in logging module (#31117)
The root logger is now accessible via its name, see
https://github.com/python/cpython/pull/15077
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Géry Ogam [Mon, 2 May 2022 22:28:45 +0000 (00:28 +0200)]
bpo-46285: Add command-line option -p/--protocol to module http.server (#30999)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Yassir Karroum [Mon, 2 May 2022 22:26:42 +0000 (22:26 +0000)]
bpo-6686: Replace String with Bytes in xml.sax.handler documentation (#30612)
Nikita Sobolev [Mon, 2 May 2022 22:25:52 +0000 (01:25 +0300)]
bpo-46547: remove leaking vars into `pydoc.Helper` namespace (#30957)
Fixes #90705
David Gilbertson [Mon, 2 May 2022 20:26:35 +0000 (06:26 +1000)]
importlib docs: Update importlib.abc hierarchy (#31113)
Fixed some inconsistencies in the text about relationships
themylogin [Mon, 2 May 2022 20:24:39 +0000 (22:24 +0200)]
bpo-46787: Fix `ProcessPoolExecutor exception` memory leak (GH-31408) (#31408)
Do not store `ProcessPoolExecutor` work item exception traceback that prevents
exception frame locals from being garbage collected.
larryhastings [Mon, 2 May 2022 20:08:22 +0000 (13:08 -0700)]
Fix the closure argument to PyEval_EvalCodeEx. (GH-92175)
Benjamin Peterson [Mon, 2 May 2022 19:43:52 +0000 (13:43 -0600)]
Fix duplicate word. (GH-92182)
Jelle Zijlstra [Mon, 2 May 2022 19:21:59 +0000 (13:21 -0600)]
gh-87390: Add __unpacked__ attribute to types.GenericAlias (#92059)
Hugo van Kemenade [Mon, 2 May 2022 17:22:26 +0000 (20:22 +0300)]
gh-90765: configparser test: Catch deprecation warning (#91480)
Mark Dickinson [Mon, 2 May 2022 17:19:03 +0000 (18:19 +0100)]
gh-90213: Speed up right shifts of negative integers (GH-30277)
Sam Ezeh [Mon, 2 May 2022 17:15:04 +0000 (18:15 +0100)]
gh-91783: Document security considerations for shutil.unpack_archive (#91844)
Pieter Eendebak [Mon, 2 May 2022 17:09:35 +0000 (19:09 +0200)]
suggestions.c: Improve efficiency of levenshtein_distance method (#91835)
Hugo van Kemenade [Mon, 2 May 2022 16:57:00 +0000 (19:57 +0300)]
Fix typo in turtle deprecation warning and use warnings._deprecated (#91862)
Eric V. Smith [Mon, 2 May 2022 16:36:39 +0000 (10:36 -0600)]
Add weakref_slot to dataclass decorator, to allow instances with slots to be weakref-able. (#92160)
Thaddeus1499 [Mon, 2 May 2022 16:20:30 +0000 (12:20 -0400)]
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (#92155)
Signed-off-by: prwatson <prwatson@redhat.com>
Irit Katriel [Mon, 2 May 2022 15:51:17 +0000 (09:51 -0600)]
gh-91276: revert the increase of dis output width (GH-92126)
slateny [Mon, 2 May 2022 15:11:05 +0000 (08:11 -0700)]
gh-88546: glob.glob docs: Make new paragraph for emphasis and reordered sentence (#91614)
Alex Waygood [Mon, 2 May 2022 15:10:02 +0000 (16:10 +0100)]
gh-92128: Add `__class_getitem__` to `logging.LoggerAdapter` and `logging.StreamHandler` (#92129)
Closes #92128
Victor Stinner [Mon, 2 May 2022 15:07:00 +0000 (17:07 +0200)]
gh-92135: Fix _Py_reinterpret_cast() for const (#92138)
Fix C++ compiler warnings on cast macros, like _PyObject_CAST(), when
casting a constant expression to a non constant type: use
const_cast<> in C++.
* In C++, Py_SAFE_DOWNCAST() now uses static_cast<> rather than
reinterpret_cast<>.
* Add tests to the _testcppext C++ extension.
* test_cppext no longer captures stdout in verbose mode.
Yiannis Hadjicharalambous [Mon, 2 May 2022 15:05:26 +0000 (16:05 +0100)]
concurrent.futures: Fix typo in docstring (#92121)
Mariusz Felisiak [Mon, 2 May 2022 15:02:54 +0000 (17:02 +0200)]
bpo-46907: Update Windows installer to SQLite 3.38.3. (GH-91995)
Harsh [Mon, 2 May 2022 15:01:52 +0000 (20:31 +0530)]
asyncio.subprocess: Fix a typo in doc (#92030)
Remove a confusion for read method in asyncio-subprocess doc for stderr StreamReader instance
Matt Harding [Mon, 2 May 2022 15:01:03 +0000 (16:01 +0100)]
Fix typo in Programming FAQ (#92083)
I believe the word "with" was missing here.
slateny [Mon, 2 May 2022 14:43:32 +0000 (07:43 -0700)]
gh-85133: os docs: Add that getenv uses os.environ (#91874)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
slateny [Mon, 2 May 2022 14:31:55 +0000 (07:31 -0700)]
gh-84714: Add behavior if dst file exists (#91867)