summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* gh-101699: Explain using Match.expand with \g<0> (GH-101701)Stevoisiak2024-02-171-1/+2
| | | | | | | Update documentation for re library to explain that a backreference `\g<0>` is expanded to the entire string when using Match.expand(). Note that numeric backreferences to group 0 (`\0`) are not supported. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-113812: Allow DatagramTransport.sendto to send empty data (#115199)Jamie Phan2024-02-178-16/+50
| | | | Also include the UDP packet header sizes (8 bytes per packet) in the buffer size reported to the flow control subsystem.
* gh-111968: Split _Py_async_gen_asend_freelist out of _Py_async_gen_fr… ↵Donghee Na2024-02-172-25/+39
| | | | (gh-115546)
* docs: Add glossary term references to shutil docs (#115559)Brian Schubert2024-02-161-4/+4
| | | Add glossary term references to shutil docs
* gh-85294: Handle missing arguments to @singledispatchmethod gracefully ↵Ammar Askar2024-02-163-2/+23
| | | | | | (GH-21471) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-115103: Implement delayed memory reclamation (QSBR) (#115180)Sam Gross2024-02-1618-2/+577
| | | | | | This adds a safe memory reclamation scheme based on FreeBSD's "GUS" and quiescent state based reclamation (QSBR). The API provides a mechanism for callers to detect when it is safe to free memory that may be concurrently accessed by readers.
* gh-115556: Remove quotes from command-line arguments in test.bat and rt.bat ↵Łukasz Langa2024-02-163-21/+29
| | | | | | | | | | | | (#115557) This change essentially replaces usage of `%1` with `%~1`, which removes quotes, if any. Without this change, the if statements fail due to the quotes mangling the syntax. Additionally, this change works around comma being treated as a parameter delimiter in test.bat by escaping commas at time of parsing. Tested combinations of rt and regrtest arguments, all seems to work as before but now you can specify commas in arguments like "-uall,extralargefile".
* gh-112720: make it easier to subclass and modify dis.ArgResolver's jump arg ↵Irit Katriel2024-02-163-11/+37
| | | | resolution (#115564)
* gh-114271: Make `thread._rlock` thread-safe in free-threaded builds (#115102)mpage2024-02-165-10/+68
| | | | | | | | | The ID of the owning thread (`rlock_owner`) may be accessed by multiple threads without holding the underlying lock; relaxed atomics are used in place of the previous loads/stores. The number of times that the lock has been acquired (`rlock_count`) is only ever accessed by the thread that holds the lock; we do not need to use atomics to access it.
* gh-115480: Type / constant propagation for float binary uops (GH-115550)Peter Lazorchak2024-02-163-38/+184
| | | Co-authored-by: Ken Jin <kenjin@python.org>
* gh-115362: Add documentation to pystats output (#115365)Michael Droettboom2024-02-161-77/+224
|
* gh-113743: Give _PyTypes_AfterFork a prototype. (gh-115563)Benjamin Peterson2024-02-161-1/+1
| | | Fixes a compiler warning.