Zackery Spytz
32032ee376
gh-87595: Support mmap.size() for anonymous mapping on Unix (GH-24781)
...
Previously, the size would be returned on Windows and an OSError would
be raised on Unix.
Also, raise ValueError instead of OSError for trackfd=False.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-09-02 23:24:06 +03:00
Jacob Coffee
e4e2390a64
Doc: Track file downloads via plausible ( #138393 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-02 22:02:00 +03:00
Bénédikt Tran
3ff00c76c9
gh-116946: add Py_TPFLAGS_IMMUTABLETYPE to select.poll and select.epoll ( #138340 )
2025-09-02 17:53:44 +00:00
Brian Schubert
5493b46462
gh-138372: Fix SyntaxWarning for erroneous t-string subscription ( #138375 )
2025-09-02 18:13:12 +01:00
AN Long
b3e785c76c
gh-138314: Add winreg.DeleteTree (GH-138388)
2025-09-02 17:04:57 +00:00
Adam Turner
cc7ef69c86
gh-138122: Use `profiling.sampling` in the documentation (PEP 799) ( #138389 )
2025-09-02 17:45:00 +01:00
Pieter Eendebak
2d3711dc06
gh-136599: Add tests for long_hash ( #138335 )
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-09-02 18:42:12 +02:00
Serhiy Storchaka
33fcb0c4a0
gh-138204: Forbid expansion of a shared anonymous mmap on Linux (GH-138220)
...
This is a Linux kernel bug which caused a bus error.
https://bugzilla.kernel.org/show_bug.cgi?id=8691
2025-09-02 19:00:39 +03:00
jadonduff
c19db1d2b8
gh-138004: Fix setting a thread name on OpenIndiana (GH-138017)
...
Encode Solaris/Illumos thread names to ASCII, since
OpenIndiana does not support non-ASCII names.
Add tests for setting non-ASCII name for the main thread.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-09-02 15:26:25 +00:00
James Parrott
8d5c3341c5
gh-138297 Point link in docs for finally to try/else, instead of if/else ( #138298 )
...
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-09-02 14:56:23 +00:00
Sebastian Rittau
3f23888fd7
gh-127647: Fix and enable I/O protocol tests ( #138369 )
2025-09-02 06:45:29 -07:00
Sergey Miryanov
33f89106d7
gh-133158: Adjust c-analyzer max_sizes for typeobject.c (GH-133159)
...
This also improves the error message for when a file is too large.
2025-09-02 13:34:22 +00:00
Stan Ulbrych
0a0cbd43a7
gh-110936: Reorder string literal definition in Lexical Analysis (GH-138063)
2025-09-02 13:48:26 +02:00
Serhiy Storchaka
cb18269e1b
gh-138253: Fix compatibility of sub-interpreters queues with queue.Queue (GH-138256)
...
Add the block parameter in the put() and get() methods of
the concurrent.interpreters queues for compatibility with the
queue.Queue interface.
2025-09-02 08:59:20 +03:00
Gregory P. Smith
a2ba0a7552
gh-61206: Support zstandard compression in the zipimport module (GH-138254)
...
* gh-61206: support zstd in zipimport
* NEWS entry
* versionchanged doc
2025-09-01 17:14:23 -07:00
Christoph Walcher
47bc10e6b3
gh-135763: AC: Implement `allow_negative for Py_ssize_t` ( #138150 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-01 22:55:22 +01:00
Andrey
7c92497e5c
gh-138360: Fix test_free_threading for IO objects ( #138359 )
...
Fix typo in test_io.py
2025-09-01 19:53:13 +00:00
Victor Stinner
aec006be97
gh-135755: Make Py_MAX_SCRIPT_PATH_SIZE private ( #138350 )
2025-09-01 20:01:01 +01:00
Stan Ulbrych
b3ff3165d2
gh-89905: Correct -R option doc ( #137608 )
2025-09-01 19:58:25 +02:00
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