Tapeline
ea77feecbb
gh-138302: Specialize int ops only if ints are compact (GH-138347)
2025-09-02 01:33:15 +08:00
Marc Mueller
6528cf47a0
gh-90548: Fix musl version detection with --strip-all ( #137864 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-01 18:58:45 +02:00
Peter Bierma
4f6ecd10c2
gh-138342: Use a common utility for visiting an object's type (GH-138343)
...
Add `_PyObject_VisitType` in place of `tp_traverse` functions that only visit the object's type.
2025-09-01 16:20:33 +00:00
Pieter Eendebak
0d02e4d7d3
gh-116738: Fix test_json_mutating_exact_dict ( #138339 )
...
Fix test_json_mutating_exact_dic
2025-09-01 21:44:19 +05:30
Stan Ulbrych
0d383f86ee
gh-54874: Expand unicodedata module documentation ( #138301 )
...
Closes #54874
Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
2025-09-01 17:50:31 +02:00
Bénédikt Tran
c9b252c2c0
gh-116946: Revert GC protocol for immutable empty heap types (GH-138266, GH-138288, GH-138289) ( #138338 )
...
* Revert "gh-116946: fully implement GC protocol for `bz2` objects (#138266 )"
This reverts commit 9be91f6a20 .
* Revert "gh-116946: fully implement GC protocol for `lzma` objects (#138288 )"
This reverts commit 3ea16f990f .
* Revert "gh-116946: fully implement GC protocol for `_hashlib` objects (#138289 )"
This reverts commit 6f1dd9551a .
2025-09-01 21:15:11 +05:30
Jason R. Coombs
9b38c6698a
Reapply "gh-132947: Apply changes from importlib_metadata 8.7 ( #137885 )" ( #137924 ) ( #137930 )
...
* Reapply "gh-132947: Apply changes from importlib_metadata 8.7 (#137885 )" (#137924 )
This reverts commit 3706ef66ef .
* Skip the triggering test on buildbots only.
2025-09-01 11:27:01 -04:00
Bénédikt Tran
2a54acf3c3
gh-116946: fully implement GC protocol for zlib objects ( #138290 )
2025-09-01 10:24:23 +02:00
Bénédikt Tran
6f1dd9551a
gh-116946: fully implement GC protocol for _hashlib objects ( #138289 )
2025-09-01 10:23:01 +02:00
Bénédikt Tran
3ea16f990f
gh-116946: fully implement GC protocol for lzma objects ( #138288 )
2025-09-01 10:22:43 +02:00
Bénédikt Tran
9be91f6a20
gh-116946: fully implement GC protocol for bz2 objects ( #138266 )
2025-09-01 10:21:39 +02:00
Hood Chatham
11a5fc8238
gh-138130: Fix return value of libc_ver() on Emscripten ( #138132 )
...
Emscripten's libc is a hybrid of musl and llvm libc; but it reports that it is
"glibc". This modifies the return value of `platform.libc_ver()` to return
something that is Emscripten-specific.
2025-09-01 06:50:29 +08:00
Stan Ulbrych
78acd8e95e
gh-138286: Run `ruff on Tools/i18n` ( #138287 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2025-08-31 20:29:02 +00:00
Cody Maloney
15e37ea6b7
gh-138013: Make `test.test_io` into a package ( #138153 )
2025-08-31 20:14:19 +01:00
Fangyi Zhou
552cf86b83
gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296)
...
"an str" -> "a str"
2025-08-31 11:50:23 -04:00
chemelnucfin
7bca924fdb
gh-138279: Remove unused attr in RuleCollectorVisitor in parser_generator.py ( #138280 )
2025-08-31 14:23:40 +00:00
Pieter Eendebak
43573028c6
gh-116738: Make _json module thread-safe in the free-threading ( #119438 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-08-31 09:42:45 +05:30
R Chintan Meher
c7a097c02e
gh-133829: Remove some specifics from the `zipimport` example ( #133835 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-08-31 01:50:56 +01:00
alm
d3d94e0ed7
gh-138061: Exclude __pycache__ directory from the computed digest in the JIT stencils ( #138131 )
...
Exclude the __pycache__ directory when generating the digest in the JIT stencils
2025-08-30 22:21:25 +01:00
Pieter Eendebak
f58a7c7175
gh-132657: avoid locks and refcounting in frozenset lookups ( #136107 )
2025-08-31 00:55:36 +05:30
Tommaso Bona
31d3836f26
gh-138158: Use the "data" tarfile extraction filter in Tools/ssl/multissltests.py ( #138147 )
...
The `Tools/ssl/multissltests.py` script may extract a possibly untrusted tarball.
Since the script does not necessarily use Python 3.14 or later (where the `"data"`
filter became the default `tarfile` extraction filter), the user may theoretically
suffer from a path traversal attack.
Although the script should not be used in production and usually relies on downloading
trusted sources, the `"data"` extraction filter is now explicitly used wherever relevant.
2025-08-30 12:27:32 +02:00
Ron Frederick
bacb7771fb
gh-137197: Add SSLContext.set_ciphersuites to set TLSv1.3 ciphers ( #137198 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-08-30 09:32:11 +00:00
chemelnucfin
11217a883d
gh-138257: Fix internal RuleCollectorVisitor attribute name ( #138208 )
...
The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
2025-08-30 11:28:44 +02:00
Wulian233
5c6937ad20
gh-133656: Remove deprecated zipimport.zipimporter.load_module (GH-133662)
...
Remove deprecated `zipimport.zipimporter.load_module`.
2025-08-30 01:28:18 +00:00
Dino Viehland
e05182f98e
gh-138250: load fast optimization should fall through to empty blocks ( #138249 )
...
load fast optimization should fall through to empty blocks
2025-08-29 11:49:35 -07:00
Hang
5f7906715a
gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation (gh-122844)
...
---------
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
2025-08-29 23:29:59 +10:00
Stan Ulbrych
88bfe4c47b
gh-137153: Add latin_N aliases to encodings.aliases ( #136701 )
...
Closes #137153
2025-08-29 14:28:04 +02:00
Kumar Aditya
c779f2324d
gh-134861: revert "Add CSV and BSV output formats to asyncio ps" ( #138187 )
...
This reverts commit ee72c95aa9 and 470cbe97a5
2025-08-28 21:19:15 +05:30
Ju4tCode
025a2135ef
gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH-137862)
...
Fixed several cases where __init__, __new__ or metaclass` __call__ is a descriptor
that returns a wrapped function.
2025-08-28 17:57:53 +03:00
Sergey B Kirpichev
ef4dd1d655
gh-73487: Convert _decimal to use Argument Clinic (part 6) (GH-138015)
2025-08-28 12:36:00 +02:00
Semyon Moroz
f914e0ab09
gh-136438: Make sure test_compile pass with all optimization levels (GH-136478)
2025-08-28 11:30:15 +02:00
sobolevn
03f8d3b0db
gh-126524: Revert "gh-126524: Run regen-unicodedata as a part of our CI #126682 " ( #138197 )
2025-08-28 10:31:44 +03:00
Brett Cannon
d910b93f78
Drop explicit tool installation in the dev container (GH-138211)
...
This is now handled upstream in the dev container image itself.
2025-08-27 23:41:31 +00:00
Jakub Kulík
bbcb75c986
bpo-41839: Fix error checking in sched_get_priority_ functions (GH-22374)
2025-08-27 20:41:14 +03:00
Pablo Galindo Salgado
56eb6b64a0
gh-138122: Implement PEP 799 ( #138142 )
2025-08-27 17:52:50 +01:00
Andreas Pelme
f733e428f8
Docs: Fix typo in shutil.make_archive example (GH-138188)
2025-08-27 11:57:37 -04:00
Serhiy Storchaka
0dbbf61cc2
gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180)
...
* Merge existing tests test_repr_str and test_to_str.
* Add more tests for non-printable and non-ASCII bytes.
* Add tests for special escape sequences ('\t\n\r').
* Add tests for slashes.
* Add more tests for quotes.
* Add tests for subclasses.
* Add test for non-ASCII class name.
* Only apply @check_bytes_warnings for str() tests.
2025-08-27 13:24:28 +03:00
Blaise Pabon
14a5ad1db1
gh-106318: Add example for str.find() ( #134529 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-08-27 09:42:00 +03:00
Taegyun Kim
ffaec6e2a1
gh-128042: Emit a `configure warning when -O0 and --enable-optimizations` are combined ( #137975 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-08-27 01:00:43 +02:00
Kumar Aditya
5ae8b97f6b
enhance docs for critical sections ( #137334 )
2025-08-26 22:43:02 +05:30
Rani Pinchuk
fd8f42d3d1
gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796)
...
Don't ignore errors raised by `PyErr_WarnFormat` in `warn_about_fork_with_threads`
Instead, ignore the warnings in all test code that forks. (That's a lot of functions.)
In `test_support`, make `ignore_warnings` a context manager (as well as decorator),
and add a `message` argument to it.
Also add a `ignore_fork_in_thread_deprecation_warnings` helper for the deadlock-in-fork
warning.
2025-08-26 15:33:21 +02:00
Jakub Kulík
f60f8225ed
gh-137481: Fix test_calendar on Solaris and OpenIndiana (GH-138156)
...
In some locales (e.g. pt_PT.UTF-8), the abbreviated weekday names
are longer than three character.
2025-08-26 14:21:09 +03:00
Krishna Chaitanya
43b113d23d
gh-138148: Fix grammatical error in the asynchronous generator iterator term (GH-138155)
2025-08-26 07:13:33 -04:00
Bénédikt Tran
1700cc4d76
gh-136565: use SHA-256 for hashlib.__doc__ example instead of MD5 ( #138157 )
2025-08-26 10:38:53 +00:00
Petr Viktorin
ce1a877a38
gh-138143: Allow anonymous unions in public headers, using _Py_ANONYMOUS (GH-137283)
...
We already use an anonymous union for PyObject. This makes the workarounds available in all public headers:
- MSVC: `__pragma(warning(disable: 4201))` (with push/pop). Warning 4201 is specifically for anonymous unions, so let's disable for all of `<Python.h>`
- GCC/clang, pedantic old C standards: define `_Py_ANONYMOUS` as `__extension__`
- otherwise, define `_Py_ANONYMOUS` as nothing
(Note that this is only for public headers -- CPython internals use C11, which has anonymous structs/unions.)
C API WG vote: https://github.com/capi-workgroup/decisions/issues/74
2025-08-26 11:14:35 +02:00
Adam Turner
73fb155ba7
Introduce a structure for `.github/CODEOWNERS` ( #137498 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-08-26 03:34:07 +02:00
Chris Eibl
95d6e0b283
GH-131033: Enable the optimizing macros UNLIKELY and LIKELY for Clang (GH-131019)
...
This includes clang-cl on Windows, which does not define the GCC version that was previously being checked.
2025-08-25 21:59:52 +01:00
PrinceNaroliya
9ee0214b5d
gh-138098: Clarify strong references in PyDict_Next docs on the free-threaded build (GH-138106)
2025-08-25 10:53:26 -04:00
Wulian233
81268a3e2a
gh-136507: Fix mimetypes CLI to handle multiple file parameters (GH-136508)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-08-25 16:38:43 +02:00
maurycy
edf6e6819b
Remove some dead code from gzip and tarfile ( #138123 )
...
The original_n variable and the writebuf and bufsize attributes were never used.
2025-08-25 16:23:47 +03:00