Mark Shannon
3831752689
PyStats: Make sure that the failure_kinds
array is big enough. ( #133245 )
2025-05-01 10:02:51 +00:00
Adam Turner
fe3c7e10d9
Lint: Create a project-wide `.ruff.toml
` settings file ( #133124 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-05-01 08:28:44 +00:00
sobolevn
5cdd49b3f4
gh-133196: Guard PEP 750 grammar with CHECK_VERSION
( #133225 )
2025-05-01 09:17:07 +02:00
Malcolm Smith
feac343d1a
gh-131531: Make Android build retry after network failures ( #133193 )
...
Adds a retry strategy when downloading compilation resources for Android, plus some other cleanups.
2025-05-01 12:17:41 +08:00
Semyon Moroz
bce45bcaf8
gh-130167: Improve `difflib.IS_LINE_JUNK
` performance by using string methods ( #130170 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Tim Peters <tim.peters@gmail.com>
2025-05-01 04:11:36 +00:00
Nybblista
b99d970bcd
Add missing whitespace in is_running_main
comment ( #133174 )
2025-05-01 04:36:59 +01:00
Russell Keith-Magee
ecbc16a915
Bump the HACL* revision. ( #133226 )
...
Bump the HACL* revision to include iOS platform identification.
2025-05-01 10:57:49 +08:00
Russell Keith-Magee
6e907c4d1f
gh-133183: Include IPHONEOS_DEPLOYMENT_TARGET in iOS shim targets. ( #133184 )
...
Include IPHONEOS_DEPLOYMENT_TARGET in iOS shim targets.
2025-05-01 10:35:33 +08:00
Eric Snow
811edcf9cd
Revert "gh-132775: Add _PyCode_GetVarCounts() (gh-133128)" (gh-133232)
...
The change broke the s390 builds, so I'm reverting it while I investigate.
This reverts commit 94b4fcd806e7b692955173d309ea3b70a193ad96.
2025-05-01 02:35:20 +00:00
Mae Hood
0119791326
dict: Remove redundant incref of immortal object Py_EMPTY_KEYS (GH-133200)
2025-05-01 08:39:26 +09:00
Eric Snow
cb35c11d82
gh-132775: Add _PyPickle_GetXIData() (gh-133107)
...
There's some extra complexity due to making sure we we get things right when handling functions and classes defined in the __main__ module. This is also reflected in the tests, including the addition of extra functions in test.support.import_helper.
2025-04-30 17:34:05 -06:00
Russell Keith-Magee
6c522debc2
GH-125515: Remove two unused error branches. ( #133181 )
...
Remove two unused error branches in the generated bytecode handling.
2025-05-01 06:21:57 +08:00
Tian Gao
327f5ff9fa
gh-133153: Use rlcompleter for pdb's interact command ( #133176 )
2025-04-30 18:19:13 -04:00
sobolevn
0e21ed7c09
gh-133213: Add tests for string.templatelib.TemplateIter
( #133215 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-04-30 22:38:25 +03:00
Eric Snow
94b4fcd806
gh-132775: Add _PyCode_GetVarCounts() (gh-133128)
...
This helper is useful in a variety of ways, including in demonstrating how the different counts relate to one another.
It will be used in a later change to help identify if a function is "stateless", meaning it doesn't have any free vars or globals.
Note that a majority of this change is tests.
2025-04-30 18:19:20 +00:00
Savannah Ostrowski
26c0248b54
GH-114809: Add support for macOS multi-arch builds with the JIT enabled ( #131751 )
...
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2025-04-30 11:03:57 -07:00
Rafael Fontenelle
2b67db7ce3
Apply 'mod' role to typing module ( #133201 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-04-30 16:52:03 +00:00
sobolevn
b451516aa6
gh-133197: Improve error message for ft""
and bt""
cases ( #133202 )
2025-04-30 19:20:44 +03:00
Hugo van Kemenade
c78216e42c
Remove redundant `--keep-going
` when running Sphinx ( #133156 )
2025-04-30 17:12:28 +01:00
sobolevn
f7264ddea0
gh-133211: Test that PEP750 types are final ( #133212 )
2025-04-30 18:03:19 +02:00
sobolevn
cc39b19f0f
gh-133167: Fix compilation process with --enable-optimizations
and --without-docstrings
( #133187 )
2025-04-30 16:41:50 +03:00
Petr Viktorin
8b26b23a96
gh-87135: test_threading: Wait on thread, not an Event it sets (GH-133198)
...
When the event is set the thread might not be done yet.
This is a fix-up for commit 4ebbfcf30e0e2d87ff6036d4d1de0f6f0ef7c46a
2025-04-30 15:14:24 +02:00
Matt Wozniski
5154d412a4
gh-131591: Add tests for _PdbClient ( #132976 )
2025-04-30 14:09:41 +01:00
dgpb
a4b7128301
gh-89867: string.Formatter auto numbering doc updates (GH-129617)
2025-04-30 14:24:40 +02:00
sobolevn
b1f893875b
gh-133194: Add CHECK_VERSION
to new PEP758 grammar ( #133195 )
2025-04-30 13:39:26 +03:00
Mark Shannon
44e4c479fb
GH-124715: Move trashcan mechanism into Py_Dealloc
(GH-132280)
2025-04-30 11:37:53 +01:00
Victor Stinner
0f23e84cda
gh-130317: Skip test_pack_unpack_roundtrip_for_nans() on x86 ( #133155 )
...
Reduce also the number of iterations from 1000 to 10 to ease
debugging failures and prevent "command line too line" error when
tests are re-run.
2025-04-30 12:01:06 +02:00
Lysandros Nikolaou
60202609a2
gh-132661: Implement PEP 750 ( #132662 )
...
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Wingy <git@wingysam.xyz>
Co-authored-by: Koudai Aono <koxudaxi@gmail.com>
Co-authored-by: Dave Peck <davepeck@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Paul Everitt <pauleveritt@me.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-04-30 11:46:41 +02:00
sobolevn
5ea9010e89
gh-133117: Run mypy on tomllib
in CI ( #133118 )
2025-04-30 11:45:58 +03:00
Rafael Fontenelle
fd0f5d0a5e
Remove trailing whitespace from python.gram ( #133175 )
2025-04-30 10:35:15 +02:00
Russell Keith-Magee
58a0f40f1f
gh-127604: Optimize -ldl usage on platforms that use dlopen for libFFI. ( #133081 )
...
Optimize -ldl usage on platforms that use dlopen for libFFI.
2025-04-30 16:28:31 +08:00
sobolevn
c4b7f7c7ff
Add profile-gen-stamp
to .gitignore
( #133188 )
2025-04-30 07:53:45 +00:00
Shantanu
7e8b153fef
gh-116436: Improve error message when TypeError occurs during dict update ( #116443 )
2025-04-29 22:18:06 -07:00
Inada Naoki
4e294f6feb
gh-133036: Deprecate codecs.open ( #133038 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-30 10:11:09 +09:00
Brandt Bucher
732d1b0241
Get rid of ERROR_IF's "label" parameter (GH-132654)
2025-04-29 17:21:53 -07:00
Brandt Bucher
b329096cfb
GH-125515: Mark code after "return" as unreachable in the cases generator ( #133178 )
...
Mark code after "return" as unreachable
2025-04-30 00:21:14 +00:00
Russell Keith-Magee
42b0b0667e
gh-133131: Discover an appropriate iOS simulator rather than hard-coding iPhone SE 3rd gen ( #133132 )
...
Determines a candidate simulator at runtime rather than hardcoding iPhone SE.
2025-04-30 05:35:36 +08:00
Serhiy Storchaka
c46635aa5a
gh-120220: Deprecate legacy methods for tracing variables in Tkinter (GH-120223)
...
They do not work with Tcl 9.0.
Use new methods added in Python 3.6.
2025-04-29 20:26:51 +03:00
Yongzi Li
814ca116d5
Docs: fix typo in InternalDocs/garbage_collector.md
(gh-133151)
...
Fix typo in `InternalDocs/garbage_collector.md`.
2025-04-29 17:20:50 +00:00
Mark Shannon
ccf1b0b1c1
GH-132508: Use tagged integers on the evaluation stack for the last instruction offset (GH-132545)
2025-04-29 18:00:35 +01:00
Tian Gao
caee16f052
gh-121468: Support async breakpoint in pdb ( #132576 )
2025-04-29 12:28:24 -04:00
Serhiy Storchaka
4265854d96
gh-132987: Support __index__() in the socket module (GH-133093)
...
ntohl(), htonl(), if_indextoname(), getaddrinfo() now use __index__() if
available.
Also fix the Argument Clinic names for module-level functions (although
this does not affect the user).
2025-04-29 19:27:07 +03:00
Serhiy Storchaka
c33efa8735
gh-132987: Support __index__() in the stat module (GH-133097)
...
Use it for the mode arguments in filemode(), S_IMODE(), S_ISDIR(), etc.
2025-04-29 19:25:44 +03:00
Chris Eibl
acb222ce8f
GH-130328: pasting in new REPL is slow on Windows (GH-132884)
2025-04-29 18:03:45 +02:00
Steve Dower
ae37f3d3c0
gh-132930: Fixes PEP 514 registration for PyManager packages on x64 (GH-133154)
2025-04-29 16:20:41 +01:00
Victor Stinner
02cd6d7097
gh-130317: Fix strict aliasing in PyFloat_Pack8() ( #133150 )
...
* Fix strict aliasing in PyFloat_Pack8() and PyFloat_Pack4().
* Fix _testcapi.float_set_snan() on x86 (32-bit).
2025-04-29 14:27:50 +00:00
Johannes Holmberg
698c6e3a0c
gh-132933: zipapp - apply the filter when creating the list of files to add (gh-132934)
2025-04-29 15:14:46 +01:00
Serhiy Storchaka
a64fdc7513
gh-132987: Support __index__() in the lzma module (GH-133099)
2025-04-29 14:14:33 +00:00
Serhiy Storchaka
d2d490064d
gh-132987: Support __index__() in the select.kqueue_event constructor (GH-133094)
2025-04-29 13:55:14 +00:00
Serhiy Storchaka
0fb4c38c27
gh-132987: Support __index__() in the ssl.SSLContext.options setter (GH-133098)
2025-04-29 16:28:47 +03:00