summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-112175: Add `eval_breaker` to `PyThreadState` (#115194)Brett Simmers2024-02-2019-169/+262
| | | | | | | | | | | This change adds an `eval_breaker` field to `PyThreadState`. The primary motivation is for performance in free-threaded builds: with thread-local eval breakers, we can stop a specific thread (e.g., for an async exception) without interrupting other threads. The source of truth for the global instrumentation version is stored in the `instrumentation_version` field in PyInterpreterState. Threads usually read the version from their local `eval_breaker`, where it continues to be colocated with the eval breaker bits.
* gh-112020: Document the meaning of empty bytes returned by socket.recv() ↵talcs2024-02-201-2/+3
| | | | (GH-112055)
* gh-110850: Enhance PyTime C API tests (#115715)Victor Stinner2024-02-201-4/+9
|
* Add missed `stream` argument (#111775)Alexander Shadchin2024-02-202-1/+3
| | | | | * Add missed `stream` argument * Add news
* gh-110850: PyTime_Time() return 0 on success (GH-115713)Victor Stinner2024-02-201-1/+1
| | | Thanks!
* gh-115687: Split up guards from COMPARE_OP (GH-115688)Ken Jin2024-02-209-163/+249
|
* gh-115700: Add target `_RegenCases` in Windows build for cases regeneration. ↵Kirill Podoprigora2024-02-202-3/+30
| | | | (GH-115708)
* GH-115457: Support splitting and replication of micro ops. (GH-115558)Mark Shannon2024-02-2020-309/+908
|
* GH-112354: Initial implementation of warm up on exits and trace-stitching ↵Mark Shannon2024-02-2029-198/+744
| | | | (GH-114142)
* gh-113157: Document and test __get__ for MethodType (gh-115492)Raymond Hettinger2024-02-201-2/+18
|
* Make the title match the content (GH-115702)Raymond Hettinger2024-02-202-5/+5
|
* Modernize the Sorting HowTo guide (gh-115479)Raymond Hettinger2024-02-201-6/+54
|
* gh-115539: Allow enum.Flag to have None members (GH-115636)Jason Zhang2024-02-192-21/+52
|
* gh-115543: Update py.exe to know about Python 3.13 and to install 3.12 by ↵Steve Dower2024-02-192-1/+7
| | | | default (GH-115544)
* Fix typo in multiprocessing docs (#115650)Naglis Jonaitis2024-02-191-1/+1
|
* gh-115664: Fix versionadded and versionchanged directives in ↵Serhiy Storchaka2024-02-191-15/+14
| | | | multiprocessing.rst (GH-115665)
* gh-115664: Fix chronological ordering of versionadded and versionchanged ↵Brian Schubert2024-02-196-20/+20
| | | | directives (#115676)
* gh-60346: Improve handling single-dash options in ↵Serhiy Storchaka2024-02-193-23/+57
| | | | ArgumentParser.parse_known_args() (GH-114180)
* gh-115341: Fix loading unit tests with doctests in -OO mode (GH-115342)Serhiy Storchaka2024-02-191-1/+1
|
* Fix test_py_compile with -O mode (GH-115345)Serhiy Storchaka2024-02-191-1/+3
|
* Fix test_compile with -O mode (GH-115346)Serhiy Storchaka2024-02-191-2/+5
|
* gh-115154: Fix untokenize handling of unicode named literals (#115171)Pablo Galindo Salgado2024-02-193-10/+85
|
* gh-115652: Fix indentation in the documentation of ↵Daniel Haag2024-02-191-5/+5
| | | | multiprocessing.get_start_method (GH-115658)
* gh-114626: Add again _PyCFunctionFastWithKeywords name (GH-115561)Victor Stinner2024-02-192-1/+5
| | | | | | | | Keep the old private _PyCFunctionFastWithKeywords name (Python 3.7) as an alias to the new public name PyCFunctionFastWithKeywords (Python 3.13a4). _PyCFunctionWithKeywords doesn't exist in Python 3.13a3, whereas _PyCFunctionFastWithKeywords was removed in Python 3.13a4.
* gh-83648: Add missing `deprecated` arg in argparse.rst (GH-115640)0xflotus2024-02-191-1/+1
|
* gh-102388: Add windows_31j to aliases for cp932 codec (#102389)Masayuki Moriyama2024-02-193-1/+4
| | | | | | | | | The charset name "Windows-31J" is registered in the IANA Charset Registry[1] and is implemented in Python as the cp932 codec. [1] https://www.iana.org/assignments/charset-reg/windows-31J Signed-off-by: Masayuki Moriyama <masayuki.moriyama@miraclelinux.com>
* Docs: Add explanation about little/big endian (#109841)Simon A. Eugster2024-02-191-0/+15
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-111358: Fix timeout behaviour in BaseEventLoop.shutdown_default_executor ↵Jamie Phan2024-02-193-9/+29
| | | | (#115622)
* gh-114709: Mark commonpath behaviour as changed in 3.13 (#115639)Shantanu2024-02-181-1/+4
|
* gh-115122: Add --bisect option to regrtest (#115123)Victor Stinner2024-02-188-30/+178
| | | | | | | | * test.bisect_cmd now exit with code 0 on success, and code 1 on failure. Before, it was the opposite. * test.bisect_cmd now runs the test worker process with -X faulthandler. * regrtest RunTests: Add create_python_cmd() and bisect_cmd() methods.
* gh-115572: Move `codeobject.replace()` docs to the data model (#115631)Daler2024-02-182-9/+9
|
* gh-114709: Fix exceptions raised by posixpath.commonpath (#114710)Sebastian Rittau2024-02-184-3/+11
| | | | | | Fix the exceptions raised by posixpath.commonpath Raise ValueError, not IndexError when passed an empty iterable. Raise TypeError, not ValueError when passed None.
* gh-108303: Move `Lib/test/sortperf.py` to `Tools/scripts` (#114687)Nikita Sobolev2024-02-182-169/+196
|
* gh-115618: Remove improper Py_XDECREFs in property methods (GH-115619)Serhiy Storchaka2024-02-173-3/+21
|
* gh-100176: Remove outdated Tools/{io,cc,string}bench (#101853)Hugo van Kemenade2024-02-176-2733/+1
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-115596: Fix ProgramPriorityTests in test_os permanently changing the ↵Brian Schubert2024-02-172-16/+17
| | | | process priority (GH-115610)
* Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145)Dmitry Marakasov2024-02-171-1/+2
| | | | | It expects priority to be capped with 19, which is the cap for Linux, but for FreeBSD the cap is 20 and the test fails under the similar conditions. Tweak the condition to cover FreeBSD as well.
* gh-115567: Catch test_ctypes.test_callbacks.test_i38748_stackCorruption ↵Kirill Podoprigora2024-02-171-3/+4
| | | | stdout output (GH-115568)
* Document use of ANY in test assertions (GH-94060)Thomas Grainger2024-02-171-0/+8
|
* gh-107155: Fix help() for lambda function with return annotation (GH-107401)Kirill Podoprigora2024-02-173-2/+31
|
* gh-96497: Mangle name before symtable lookup in ↵wookie1842024-02-173-4/+34
| | | | 'symtable_extend_namedexpr_scope' (GH-96561)
* gh-97590: Update docs and tests for ftplib.FTP.voidcmd() (GH-96825)Matthew Hughes2024-02-172-4/+4
| | | | Since 2f3941d743481ac48628b8b2c075f2b82762050b this function returns the response string, rather than nothing.
* gh-95782: Fix io.BufferedReader.tell() etc. being able to return offsets < 0 ↵6t8k2024-02-174-3/+62
| | | | | | | | | | | | | | | | | | | | (GH-99709) lseek() always returns 0 for character pseudo-devices like `/dev/urandom` (for other non-regular files, e.g. `/dev/stdin`, it always returns -1, to which CPython reacts by raising appropriate exceptions). They are thus technically seekable despite not having seek semantics. When calling read() on e.g. an instance of `io.BufferedReader` that wraps such a file, `BufferedReader` reads ahead, filling its buffer, creating a discrepancy between the number of bytes read and the internal `tell()` always returning 0, which previously resulted in e.g. `BufferedReader.tell()` or `BufferedReader.seek()` being able to return positions < 0 even though these are supposed to be always >= 0. Invariably keep the return value non-negative by returning max(former_return_value, 0) instead, and add some corresponding tests.
* gh-56499: Update the pickle library's note section for the __setstate__ ↵Furkan Onder2024-02-171-2/+2
| | | | function (GH-101062)
* gh-87688: Amend SSLContext.hostname_checks_common_name docs (GH-100517)Rami2024-02-171-1/+1
|
* gh-100884: email/_header_value_parser: don't encode list separators (GH-100885)Thomas Weißschuh2024-02-173-1/+9
| | | | | ListSeparator should not be encoded. This could happen when a long line pushes its separator to the next line, which would have been encoded.
* gh-100985: Consistently wrap IPv6 IP address during CONNECT (GH-100986)Derek Higgins2024-02-174-5/+29
| | | | | | Update _get_hostport to always remove square brackets from IPv6 addresses. Then add them if needed in "CONNECT .." and "Host: ".
* gh-101100: Fix Sphinx warnings in `whatsnew/3.2.rst` (#115580)Hugo van Kemenade2024-02-173-43/+44
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101100: Fix Sphinx warnings in `whatsnew/3.1.rst` (#115575)Hugo van Kemenade2024-02-172-10/+13
|
* gh-101384: Add socket timeout to ThreadedVSOCKSocketStreamTest and skip it ↵Peter Jiping Xie2024-02-171-0/+3
| | | | on WSL (GH-101419)