Martijn Pieters
1ff0238594
GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios ( #113334 )
...
When wrapped, `_SSLProtocolTransport._force_close(exc)` is called just like in the unwrapped scenario `_SelectorTransport._force_close(exc)` or `_ProactorBasePipeTransport._force_close(exc)` would be called, except here the exception needs to be passed through the `SSLProtocol._abort()` method, which didn't accept an exception object.
This commit ensures that this path works, in the same way that the uvloop implementation of SSLProto passes on the exception (on which the current implementation of SSLProto is based).
2023-12-20 15:09:01 -08:00
Sam Gross
a3e8afe0a3
gh-113330: Fix mimalloc headers reference ( #113331 )
...
The `MIMALLOC_HEADERS` variable is defined in the Makefile.pre.in, not
the configure script, so we should use the `$(MIMALLOC_HEADERS)` syntax
instead of the `@MIMALLOC_HEADERS@` syntax.
2023-12-20 22:07:17 +01:00
Guido van Rossum
713e42822f
GH-111485: Fix DEFAULT_OUTPUT in opcode_metadata_generator.py ( #113324 )
2023-12-20 10:05:48 -08:00
Seth Michael Larson
b221e03010
gh-113257: Automatically generate pip SBOM metadata from wheel ( #113295 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-20 17:28:20 +00:00
Kir
11ee912327
gh-113255: Clarify docs for `typing.reveal_type` ( #113286 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-12-20 17:21:23 +00:00
Mark Shannon
de8a4e52a5
GH-111485: Generate `TARGET` table for computed goto dispatch. (GH-113319)
2023-12-20 15:09:12 +00:00
Mark Shannon
e96f26083b
GH-111485: Generate instruction and uop metadata (GH-113287)
2023-12-20 14:27:25 +00:00
Christopher Chavez
a545a86ec6
gh-111178: Make slot functions in typeobject.c have compatible types (GH-112752)
2023-12-20 15:13:44 +01:00
Donghee Na
57b7e52790
gh-112205: Support docstring for `@getter` ( #113160 )
...
---------
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2023-12-20 21:52:12 +09:00
Rodrigo Girão Serrão
5a7cc667f8
Fix typo in datamodel docs ( #113314 )
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-12-20 11:58:38 +00:00
David Greaves
22b8945d76
Fix typo in collections.abc docs example ( #113310 )
...
Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self"
2023-12-20 09:51:16 +00:00
Ethan Furman
4afa7be32d
add Ujan to ACKS for work on enum docs (GH-113301)
2023-12-19 17:55:24 -08:00
Erlend E. Aasland
14d4c7742a
gh-111973: Update Windows installer to use SQLite 3.44.2 ( #113281 )
2023-12-19 23:31:52 +01:00
Marat Idrisov
e1117cb886
gh-87264: Convert tarinfo type to stat type (GH-113230)
...
Co-authored-by: val-shkolnikov <val@nvsoft.net>
2023-12-19 11:04:43 -08:00
Erlend E. Aasland
6a1d5a4c0f
gh-111973: Update macOS installer to use SQLite 3.44.2 (GH-113279)
2023-12-19 13:23:52 -05:00
Hugo van Kemenade
76bef3832b
gh-101100: Fix Sphinx warnings in `library/ast.rst` ( #113289 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-12-19 15:44:57 +00:00
Erlend E. Aasland
6a69b80d1b
gh-112205: Require @getter and @setter to be methods ( #113278 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-12-19 12:32:28 +01:00
Irit Katriel
e51b400945
gh-113054: Compiler no longer replaces a redundant jump with no line number by a NOP ( #113139 )
2023-12-19 11:04:44 +00:00
ryan-duve
76d757b38b
gh-113234: tomllib docs: reorder conversion table & add remaining types (GH-113236)
2023-12-19 11:29:55 +01:00
Unique-Usman
d71fcdee0f
gh-113208: Mention namespace packages don't require __init__.py ( #113209 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-12-19 10:39:57 +02:00
Seth Michael Larson
4658464e9c
gh-113257: Fix SBOM metadata for pip 23.3.2 ( #113262 )
...
Fix SBOM metadata for pip 23.3.2
2023-12-19 08:34:53 +02:00
Terry Jan Reedy
fa9ba02353
gh-113269: IDLE - Fix test_editor hang (macOS) ( #113271 )
...
Hangs on installed 3.13.0a2 on macOS Catalina.
Behavior on installed 3.12.1 and 3.11.7 is unknown.
2023-12-19 05:26:11 +00:00
Gregory P. Smith
c895403de0
gh-113119: Fix the macOS framework installer build ( #113268 )
...
`--enable-framework` builds were failing. we apparently do not have good CI & buildbot coverage here.
2023-12-18 21:18:30 -08:00
Ronald Oussoren
893c9ccf48
gh-102362: Fix macOS version number in result of sysconfig.get_platform() (GH-112942)
...
Change _osx_support.get_platform_osx() to make sure that the
version number in the result includes at least a major and
minor version (e.g. 14.2) even if MACOSX_DEPLOYMENT_TARGET is
set to just a major version (e.g. 14).
This matches the versions expected by pip when selecting
appropriate wheels for installation.
2023-12-18 18:51:58 -05:00
Ronald Oussoren
4cfce3a4da
gh-108269: Add CFBundleAllowMixedLocalizations to Info.plist on macOS (GH-113213)
...
Adding this key with a value of true enables detecting the
users prefered language in libraries accessing system APIs
for this.
2023-12-18 18:41:41 -05:00
Illia Volochii
41336a72b9
gh-113199: Make read1() and readline() of HTTPResponse close IO after reading all data (GH-113200)
2023-12-18 22:17:16 +02:00
Itamar Oren
2feec0fc7f
gh-113039: Avoid using leading dots in the include path for frozen getpath.py (GH-113022)
2023-12-18 17:04:40 +00:00
Donghee Na
d00dbf5415
gh-112535: Implement fallback implementation of _Py_ThreadId() (gh-113185)
...
---------
Co-authored-by: Sam Gross <colesbury@gmail.com>
2023-12-18 16:54:49 +00:00
dreamflow
59f0766ae5
gh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Flags ( #113241 )
2023-12-18 16:14:15 +00:00
Mark Shannon
70d378cdaa
GH-111485: Break up instructions with unused cache entries into component micro-ops (GH-113169)
2023-12-18 13:16:45 +00:00
Mark Shannon
771903596b
GH-111485: Test the new cases generator (GH-113252)
2023-12-18 11:14:40 +00:00
Stéphane Bidoul
4a24bf9a13
gh-113246: Updated bundled pip to 23.3.2 (gh-113249)
...
Updated bundled pip to 23.3.2
2023-12-18 10:21:46 +00:00
Hugo van Kemenade
f428c4dafb
gh-101100: Fix Sphinx warnings in library/tarfile.rst ( #113237 )
...
Fix Sphinx warnings in library/tarfile.rst
2023-12-18 08:57:45 +02:00
Jakub Kulík
2b93f52242
gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True ( #113118 )
...
Add support for `os.POSIX_SPAWN_CLOSEFROM` and
`posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use
them when available. This means `posix_spawn` can now be used in the default
`close_fds=True` situation on many platforms.
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
2023-12-17 21:34:57 +00:00
Hugo van Kemenade
32d87a8899
Docs: Add label to grammar spec for linking from PEPs ( #113235 )
2023-12-17 12:23:14 -07:00
Carson Radtke
cfa25fe3e3
gh-113149: Improve error message when JSON has trailing comma (GH-113227)
2023-12-17 20:52:26 +02:00
Taylor Packard
21d52995ea
gh-112890: `unittest` Test Discovery page updated "`unittest` dropped the namspace packages support" (GH-113195)
2023-12-17 13:14:21 +02:00
Jakub Kulík
48c907a15c
gh-113119 fix environment handling in subprocess.Popen when posix_spawn is used ( #113120 )
...
* Allow posix_spawn to inherit environment form parent environ variable.
With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
2023-12-17 05:19:05 +00:00
Terry Jan Reedy
cde1335485
IDLE: Add util and stub example comments ( #113222 )
2023-12-17 00:51:25 +00:00
Barney Gale
2f0ec7fa94
GH-110109: pathlib tests: store base directory as test class attribute ( #113221 )
...
Store the test base directory as a class attribute named `base` rather than
module constants named `BASE`.
The base directory is a local file path, and therefore not ideally suited
to the pathlib ABC tests. In a future commit we'll change its value in
`test_pathlib_abc.py` such that it points to a totally fictitious path, which
will help to ensure we're not touching the local filesystem.
2023-12-17 00:07:32 +00:00
Barney Gale
d91e43ed78
GH-110109: Move tests for pathlib ABCs to new module. ( #112904 )
2023-12-16 19:04:33 +00:00
Raymond Hettinger
1583c40be9
gh-113202: Add a strict option to itertools.batched() (gh-113203)
2023-12-16 09:13:50 -06:00
Mark Dickinson
fe479fb8a9
gh-67790: Support basic formatting for Fraction ( #111320 )
...
PR #100161 added fancy float-style formatting for the Fraction type,
but left us in a state where basic formatting for fractions (alignment,
fill, minimum width, thousands separators) still wasn't supported.
This PR adds that support.
---------
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-12-16 10:58:31 +00:00
Terry Jan Reedy
84df3172ef
gh-113046: Revise csv.reader doc ( #113207 )
...
Clarify nature of csvfile.
2023-12-16 03:12:39 -05:00
Sam Gross
5ae75e1be2
gh-111964: Add _PyRWMutex a "readers-writer" lock (gh-112859)
...
This adds `_PyRWMutex`, a "readers-writer" lock, which wil be used to
serialize global stop-the-world pauses with per-interpreter pauses.
2023-12-15 18:56:55 -07:00
Raymond Hettinger
40574da019
Add reshape() recipe to demonstrate a use case for batched() and chained.from_iterable() (gh-113198)
2023-12-15 18:03:44 -06:00
Akshat Khandelwal
00d2b6d1fc
gh-110746: Improve markup in ``tkinter.ttk.rst`` ( #111236 )
...
* gh-110746: Improve markup in tkinter.ttk.rst
* gh-110746: Improve markup in tkinter.ttk.rst
* 📜 🤖 Added by blurb_it.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2023-12-15 21:53:16 +01:00
Brandt Bucher
d07483292b
GH-112383: Fix test_loop_quicken when an executor is installed (GH-113153)
2023-12-15 17:27:57 +00:00
Alex Waygood
1addde0c69
gh-101100: Fix various Sphinx warnings for dunder references in the `library/` directory ( #113163 )
2023-12-15 19:15:34 +02:00
Alex Waygood
c2c4879b0a
gh-101100: Fix Sphinx nitpicks in `library/numbers.rst` ( #113162 )
2023-12-15 19:05:12 +02:00