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 4ebbfcf30e
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
Serhiy Storchaka
d6da6803a1
gh-132987: Support __index__() in hashlib.scrypt() (GH-133100)
...
Even if such signature is not supported by PyArg_ParseTupleAndKeywords(),
Argument Clinic supports it with inlined converters.
2025-04-29 16:16:05 +03:00
Serhiy Storchaka
07edc0d2b2
gh-132987: Support __index__() in the posix module (GH-133096)
...
Support it for the dev_t values in mknod(), major(), minor() and makedev(),
CPU numbers in sched_setaffinity(), group numbers in setgroups(),
configuration name in fpathconf(), pathconf(), confstr(), and sysconf().
2025-04-29 16:14:47 +03:00
Stan Ulbrych
bba14c3e01
gh-46236: Document PyUnicodeIter_Type
(GH-132925)
2025-04-29 14:23:06 +02:00
Stan Ulbrych
59ff42155a
gh-57281: Fix duplicate deprecation note: array 'u' format ( #133113 )
2025-04-29 13:22:15 +02:00
Petr Viktorin
0c26dbd16e
gh-133079: Remove Py_C_RECURSION_LIMIT & PyThreadState.c_recursion_remaining (GH-133080)
...
Both were added in 3.13, are undocumented, and don't make sense in 3.14 due to
changes in the stack overflow detection machinery (gh-112282).
PEP 387 exception for skipping a deprecation period: https://github.com/python/steering-council/issues/288
2025-04-29 12:56:20 +02:00
Adam Turner
208d06fd51
gh-132930: Fix use of ALIAS_WPREFIX in pymanager builds (GH-133120)
2025-04-29 08:53:43 +00:00
Adam Turner
4d54e9cdf6
GH-132930: Display 'free-threaded' in pymanager builds (GH-133119)
2025-04-29 09:28:04 +01:00
Mark Shannon
622300bdfa
GH-132554: Add stats for GET_ITER (GH-132592)
...
* Add stats for GET_ITER
* Look for common iterable types, not iterator types
* Add stats for self iter and fix naming in summary
2025-04-29 09:00:14 +01:00
sobolevn
01f11a0e4e
Run mypy workflow on _colorize.py
and Misc/mypy/**
changes ( #133116 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-29 07:53:12 +00:00
Neil Schemenauer
eecafc3380
Revert gh-127266: avoid data races when updating type slots (gh-131174) (gh-133129)
...
This is triggering deadlocks in test_opcache. See GH-133130 for stack trace.
2025-04-28 23:38:29 -07:00
Raymond Hettinger
219b1f9d1d
gh-132893: Minor edits to the statistics module PR (gh-133106)
2025-04-28 23:05:37 -05:00
Eric Snow
219d8d24b5
gh-87859: Track Code Object Local Kinds For Arguments (gh-132980)
...
Doing this was always the intention. I was finally motivated to find the time to do it.
See #87859 (comment).
2025-04-29 02:21:47 +00:00
Eric Snow
96a7fb93a8
gh-132775: Add _PyCode_ReturnsOnlyNone() (gh-132981)
...
The function indicates whether or not the function has a return statement.
This is used by a later change related treating some functions like scripts.
2025-04-28 20:12:52 -06:00