Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-112175: Add `eval_breaker` to `PyThreadState` (#115194) | Brett Simmers | 2024-02-20 | 19 | -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() ↵ | talcs | 2024-02-20 | 1 | -2/+3 |
| | | | | (GH-112055) | ||||
* | gh-110850: Enhance PyTime C API tests (#115715) | Victor Stinner | 2024-02-20 | 1 | -4/+9 |
| | |||||
* | Add missed `stream` argument (#111775) | Alexander Shadchin | 2024-02-20 | 2 | -1/+3 |
| | | | | | * Add missed `stream` argument * Add news | ||||
* | gh-110850: PyTime_Time() return 0 on success (GH-115713) | Victor Stinner | 2024-02-20 | 1 | -1/+1 |
| | | | Thanks! | ||||
* | gh-115687: Split up guards from COMPARE_OP (GH-115688) | Ken Jin | 2024-02-20 | 9 | -163/+249 |
| | |||||
* | gh-115700: Add target `_RegenCases` in Windows build for cases regeneration. ↵ | Kirill Podoprigora | 2024-02-20 | 2 | -3/+30 |
| | | | | (GH-115708) | ||||
* | GH-115457: Support splitting and replication of micro ops. (GH-115558) | Mark Shannon | 2024-02-20 | 20 | -309/+908 |
| | |||||
* | GH-112354: Initial implementation of warm up on exits and trace-stitching ↵ | Mark Shannon | 2024-02-20 | 29 | -198/+744 |
| | | | | (GH-114142) | ||||
* | gh-113157: Document and test __get__ for MethodType (gh-115492) | Raymond Hettinger | 2024-02-20 | 1 | -2/+18 |
| | |||||
* | Make the title match the content (GH-115702) | Raymond Hettinger | 2024-02-20 | 2 | -5/+5 |
| | |||||
* | Modernize the Sorting HowTo guide (gh-115479) | Raymond Hettinger | 2024-02-20 | 1 | -6/+54 |
| | |||||
* | gh-115539: Allow enum.Flag to have None members (GH-115636) | Jason Zhang | 2024-02-19 | 2 | -21/+52 |
| | |||||
* | gh-115543: Update py.exe to know about Python 3.13 and to install 3.12 by ↵ | Steve Dower | 2024-02-19 | 2 | -1/+7 |
| | | | | default (GH-115544) | ||||
* | Fix typo in multiprocessing docs (#115650) | Naglis Jonaitis | 2024-02-19 | 1 | -1/+1 |
| | |||||
* | gh-115664: Fix versionadded and versionchanged directives in ↵ | Serhiy Storchaka | 2024-02-19 | 1 | -15/+14 |
| | | | | multiprocessing.rst (GH-115665) | ||||
* | gh-115664: Fix chronological ordering of versionadded and versionchanged ↵ | Brian Schubert | 2024-02-19 | 6 | -20/+20 |
| | | | | directives (#115676) | ||||
* | gh-60346: Improve handling single-dash options in ↵ | Serhiy Storchaka | 2024-02-19 | 3 | -23/+57 |
| | | | | ArgumentParser.parse_known_args() (GH-114180) | ||||
* | gh-115341: Fix loading unit tests with doctests in -OO mode (GH-115342) | Serhiy Storchaka | 2024-02-19 | 1 | -1/+1 |
| | |||||
* | Fix test_py_compile with -O mode (GH-115345) | Serhiy Storchaka | 2024-02-19 | 1 | -1/+3 |
| | |||||
* | Fix test_compile with -O mode (GH-115346) | Serhiy Storchaka | 2024-02-19 | 1 | -2/+5 |
| | |||||
* | gh-115154: Fix untokenize handling of unicode named literals (#115171) | Pablo Galindo Salgado | 2024-02-19 | 3 | -10/+85 |
| | |||||
* | gh-115652: Fix indentation in the documentation of ↵ | Daniel Haag | 2024-02-19 | 1 | -5/+5 |
| | | | | multiprocessing.get_start_method (GH-115658) | ||||
* | gh-114626: Add again _PyCFunctionFastWithKeywords name (GH-115561) | Victor Stinner | 2024-02-19 | 2 | -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) | 0xflotus | 2024-02-19 | 1 | -1/+1 |
| | |||||
* | gh-102388: Add windows_31j to aliases for cp932 codec (#102389) | Masayuki Moriyama | 2024-02-19 | 3 | -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. Eugster | 2024-02-19 | 1 | -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 Phan | 2024-02-19 | 3 | -9/+29 |
| | | | | (#115622) | ||||
* | gh-114709: Mark commonpath behaviour as changed in 3.13 (#115639) | Shantanu | 2024-02-18 | 1 | -1/+4 |
| | |||||
* | gh-115122: Add --bisect option to regrtest (#115123) | Victor Stinner | 2024-02-18 | 8 | -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) | Daler | 2024-02-18 | 2 | -9/+9 |
| | |||||
* | gh-114709: Fix exceptions raised by posixpath.commonpath (#114710) | Sebastian Rittau | 2024-02-18 | 4 | -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 Sobolev | 2024-02-18 | 2 | -169/+196 |
| | |||||
* | gh-115618: Remove improper Py_XDECREFs in property methods (GH-115619) | Serhiy Storchaka | 2024-02-17 | 3 | -3/+21 |
| | |||||
* | gh-100176: Remove outdated Tools/{io,cc,string}bench (#101853) | Hugo van Kemenade | 2024-02-17 | 6 | -2733/+1 |
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | ||||
* | gh-115596: Fix ProgramPriorityTests in test_os permanently changing the ↵ | Brian Schubert | 2024-02-17 | 2 | -16/+17 |
| | | | | process priority (GH-115610) | ||||
* | Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145) | Dmitry Marakasov | 2024-02-17 | 1 | -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 Podoprigora | 2024-02-17 | 1 | -3/+4 |
| | | | | stdout output (GH-115568) | ||||
* | Document use of ANY in test assertions (GH-94060) | Thomas Grainger | 2024-02-17 | 1 | -0/+8 |
| | |||||
* | gh-107155: Fix help() for lambda function with return annotation (GH-107401) | Kirill Podoprigora | 2024-02-17 | 3 | -2/+31 |
| | |||||
* | gh-96497: Mangle name before symtable lookup in ↵ | wookie184 | 2024-02-17 | 3 | -4/+34 |
| | | | | 'symtable_extend_namedexpr_scope' (GH-96561) | ||||
* | gh-97590: Update docs and tests for ftplib.FTP.voidcmd() (GH-96825) | Matthew Hughes | 2024-02-17 | 2 | -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 ↵ | 6t8k | 2024-02-17 | 4 | -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 Onder | 2024-02-17 | 1 | -2/+2 |
| | | | | function (GH-101062) | ||||
* | gh-87688: Amend SSLContext.hostname_checks_common_name docs (GH-100517) | Rami | 2024-02-17 | 1 | -1/+1 |
| | |||||
* | gh-100884: email/_header_value_parser: don't encode list separators (GH-100885) | Thomas Weißschuh | 2024-02-17 | 3 | -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 Higgins | 2024-02-17 | 4 | -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 Kemenade | 2024-02-17 | 3 | -43/+44 |
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-101100: Fix Sphinx warnings in `whatsnew/3.1.rst` (#115575) | Hugo van Kemenade | 2024-02-17 | 2 | -10/+13 |
| | |||||
* | gh-101384: Add socket timeout to ThreadedVSOCKSocketStreamTest and skip it ↵ | Peter Jiping Xie | 2024-02-17 | 1 | -0/+3 |
| | | | | on WSL (GH-101419) |