summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix old-style `print` statement in `gettext` comments (#122939)sobolevn2024-08-121-1/+1
|
* gh-122688: Add more tests for var-positional parameters in Argument Clinic ↵Serhiy Storchaka2024-08-123-153/+427
| | | | (GH-122900)
* Fix typos in comments and test code (#122846)Xie Yanbo2024-08-1218-28/+28
|
* Remove "print >>obj" exception hint for Python 2 (#122853)Victor Stinner2024-08-122-46/+0
|
* gh-122903: Honor directories in zipfile.Path.glob. (#122908)Jason R. Coombs2024-08-124-9/+40
|
* gh-122905: Sanitize names in zipfile.Path. (#122906)Jason R. Coombs2024-08-113-1/+81
| | | Ported from zipp 3.19.1; ref jaraco/zipp#119.
* gh-119180: annotationlib: Fix __all__, formatting (#122365)Jelle Zijlstra2024-08-113-33/+68
|
* gh-119180: Improvements to ForwardRef.evaluate (#122210)Jelle Zijlstra2024-08-113-11/+60
| | | | Noticed some issues while writing documentation for this method.
* GH-73991: Rework `pathlib.Path.copytree()` into `copy()` (#122369)Barney Gale2024-08-1110-197/+141
| | | | | | | | | | Rename `pathlib.Path.copy()` to `_copy_file()` (i.e. make it private.) Rename `pathlib.Path.copytree()` to `copy()`, and add support for copying non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `delete()` methods (which will also accept any type of file.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-122701: Fix wording of raw strings/bytes in `lexical_analysis.rst` (#122702)sobolevn2024-08-111-5/+4
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Docs: Standardise versionchanged text in weakref.rst (#122898)Rafael Fontenelle2024-08-111-1/+1
|
* gh-122860: Remove unused macro `_Py_atomic_load_relaxed_int32` (#122861)Sam Gross2024-08-112-14/+0
|
* gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875)Wulian2024-08-1110-8/+27
| | | | | Deprecate `asyncio.iscoroutinefunction` in favor of `inspect.iscoroutinefunction`. Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* GH-120974: make `_asyncio.all_tasks` thread safe (#122801)Kumar Aditya2024-08-111-7/+15
| | | Make `_asyncio.all_tasks` thread safe, also changes state lock to use critical section.
* GH-120794: Use example paths with multiple parts in pathlib docs (#122887)Barney Gale2024-08-101-8/+8
| | | | | | In the documentation of `PosixPath` and `WindowsPath`, and their `Pure*` equivalents, use example paths with multiple non-anchor parts. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-122868: Add more lower bounds for sphinxcontrib dependencies (#122891)Adam Turner2024-08-101-9/+11
|
* gh-115808: Add ``is_none`` and ``is_not_none`` to ``operator`` (#115814)Nico Mexis2024-08-107-3/+107
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-122868: Add lower bounds for sphinxcontrib dependencies (#122870)Adam Turner2024-08-091-3/+3
| | | | | * Docs: Add lower bounds for sphinxcontrib dependencies * oops
* gh-105376: Restore deprecated logging warn() method (#122775)Victor Stinner2024-08-095-24/+26
| | | | | | | | | This reverts commit dcc028d92428bd57358a5028ada2a53fc79fc365 and commit 6c54e5d72166d012b52155cbf13af9e533290e06. Keep the deprecated logging warn() method in Python 3.13. Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-111495: Fix refleaks in test_capi.test_eval tests (#122851)Victor Stinner2024-08-091-3/+3
|
* gh-122688: Fix support of var-positional parameter in Argument Clinic ↵Serhiy Storchaka2024-08-097-96/+203
| | | | | | | | | (GH-122689) * Parameters after the var-positional parameter are now keyword-only instead of positional-or-keyword. * Correctly calculate min_kw_only. * Raise errors for invalid combinations of the var-positional parameter with "*", "/" and deprecation markers.
* gh-121268: Remove workarounds for non-IEEE 754 systems in cmath (#122716)Sergey B Kirpichev2024-08-092-14/+4
| | | | As now building Python now requires support of IEEE 754 floating point numbers.
* gh-116622: Rename build variable MODULE_LDFLAGS back to LIBPYTHON (#122764)Malcolm Smith2024-08-087-12/+20
| | | (LIBPYTHON was renamed MODULE_LDFLAGS in commit 7f5e3f04f.)
* GH-118943: Remove regen-jit from the regen-all make target (GH-122602)Miro Hrončok2024-08-082-1/+2
| | | Co-authored-by: Éric <merwok@netwok.org>
* gh-112301: Update documentation for configure options (``--disable-safety`` ↵Nate Ohlson2024-08-081-4/+17
| | | | | and ``--enable-slower-safety``) (#122758) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-122835: Fix module name in ``test_typing`` (#122836)Kirill Podoprigora2024-08-081-1/+1
|
* gh-122697: Fix free-threading memory leaks at shutdown (#122703)Sam Gross2024-08-085-4/+27
| | | | | | | | | | | | | | | We were not properly accounting for interpreter memory leaks at shutdown and had two sources of leaks: * Objects that use deferred reference counting and were reachable via static types outlive the final GC. We now disable deferred reference counting on all objects if we are calling the GC due to interpreter shutdown. * `_PyMem_FreeDelayed` did not properly check for interpreter shutdown so we had some memory blocks that were enqueued to be freed, but never actually freed. * `_PyType_FinalizeIdPool` wasn't called at interpreter shutdown.
* gh-122562: fix dump_symtable for ste_free and ste_child_free removal (#122825)Irit Katriel2024-08-081-1/+1
|
* gh-111495: Add more tests on PyEval C APIs (#122789)Victor Stinner2024-08-089-65/+205
| | | | * Add Lib/test/test_capi/test_eval.py * Add Modules/_testlimitedcapi/eval.c
* GH-120024: Tidy up case generator code a bit. (GH-122780)Mark Shannon2024-08-0811-103/+175
|
* gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776)Petr Viktorin2024-08-081-0/+8
|
* InternalDocs: Fix typo in link to instruction_sequence.c inside compiler ↵Francisco Kurucz2024-08-081-1/+1
| | | | docs (#122809)
* gh-122255: Add black box tests in test_warnings (GH-122227)Serhiy Storchaka2024-08-081-0/+91
| | | | They are similar to white box tests for gh-86298 in test_importlib.
* gh-116263: Do not rollover empty files in RotatingFileHandler (GH-122788)Serhiy Storchaka2024-08-083-5/+58
|
* gh-120782: Update datetime test for static type immutability (#122800)neonene2024-08-081-7/+22
|
* gh-122247: Move instruction instrumentation sanity check after tracing check ↵Tian Gao2024-08-082-1/+16
| | | | (#122251)
* gh-105201: Add PyIter_NextItem() (#122331)Erlend E. Aasland2024-08-0712-40/+156
| | | | | | | | | Return -1 and set an exception on error; return 0 if the iterator is exhausted, and return 1 if the next item was fetched successfully. Prefer this API to PyIter_Next(), which requires the caller to use PyErr_Occurred() to differentiate between iterator exhaustion and errors. Co-authered-by: Irit Katriel <iritkatriel@yahoo.com>
* gh-118814: Fix the TypeVar constructor when name is passed by keyword ↵Serhiy Storchaka2024-08-076-7/+165
| | | | | | | | (GH-122664) Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for positional-or-keyword parameter is passed by keyword. There was only one such case in the stdlib -- the TypeVar constructor.
* gh-122478: Remove internal frames from tracebacks in REPL (GH-122528)Serhiy Storchaka2024-08-073-54/+161
| | | | | | | | Frames of methods in code and codeop modules was show with non-default sys.excepthook. Save correct tracebacks in sys.last_traceback and update __traceback__ attribute of sys.last_value and sys.last_exc.
* gh-118761: Improve import time of `pprint` (#122725)Hugo van Kemenade2024-08-072-4/+23
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Remove dead code in the RE parser (GH-122796)Serhiy Storchaka2024-08-071-16/+0
|
* gh-122798: Make tests for warnings in the re module more strict (GH-122799)Serhiy Storchaka2024-08-071-11/+40
| | | | * Test warning messages. * Test stack level for re.compile() and re.findall().
* gh-118926: Spill deferred references to stack in cases generator (#122748)Sam Gross2024-08-079-60/+173
| | | | | | | This automatically spills the results from `_PyStackRef_FromPyObjectNew` to the in-memory stack so that the deferred references are visible to the GC before we make any possibly escaping call. Co-authored-by: Ken Jin <kenjin@python.org>
* Docs: Change `remove` to `removes` for consistency (#121072)smij7202024-08-071-2/+3
|
* Bump types-setuptools to 71.1.0.20240726 in /Tools (#122551)dependabot[bot]2024-08-071-1/+1
|
* gh-100256: Skip inaccessible registry keys in the WinAPI mimetype ↵Lucas Esposito2024-08-073-1/+3
| | | | implementation (GH-122047)
* Doc: cmdline.rst: Include -P and -R in usage (#122590)Wim Jeantine-Glenn2024-08-071-1/+1
| | | | * ``-P``: safe path (https://docs.python.org/3/using/cmdline.html#cmdoption-P) * ``-R``: hash randomization (https://docs.python.org/3/using/cmdline.html#cmdoption-R)
* gh-122759: Remove `assert` from `RERAISE` error handling (#122760)sobolevn2024-08-072-2/+0
|
* gh-122511: Improve documentation for object identity of mutable/immutable ↵Bénédikt Tran2024-08-071-6/+10
| | | | | types (#122512) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-117139: Fix an incorrect borrow in bytecodes.c (#122318)Sam Gross2024-08-073-11/+14
| | | `_PyDict_SetItem_Take2` steals both the key (i.e., `sub`) and the value.