summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* gh-121151: argparse: Fix wrapping of long usage text of arguments inside a ↵Ali Hamdan2024-08-073-7/+36
| | | | mutually exclusive groups (GH-121159)
* gh-79846: Make ssl.create_default_context() ignore invalid certificates ↵pukkandan2024-08-072-5/+6
| | | | | | | (GH-91740) An error in one certificate should not cause the whole thing to fail. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix typos in comments and docstring (#122720)Xie Yanbo2024-08-079-11/+11
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-73991: Rework `pathlib.Path.rmtree()` into `delete()` (#122368)Barney Gale2024-08-077-150/+140
| | | | | | Rename `pathlib.Path.rmtree()` to `delete()`, and add support for deleting non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `copy()` methods (which will also accept any type of file.)
* gh-122571: Remove duplicate definition of PY_BUILTIN_HASHLIB_HASHES in ↵Jonathan Protzenko2024-08-062-6/+3
| | | | | | configure.ac (#122572) The redefinition in confdefs.h can cause issues with the AX_CHECK_COMPILE_FLAG macro.
* gh-122728: Fix SystemError in PyEval_GetLocals() (#122735)Victor Stinner2024-08-064-1/+23
| | | | | | | Fix PyEval_GetLocals() to avoid SystemError ("bad argument to internal function"). Don't redefine the 'ret' variable in the if block. Add an unit test on PyEval_GetLocals().
* gh-122744: Bump bundled pip to 24.2 (#122745)Pradyun Gedam2024-08-063-1/+2
| | | Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
* gh-122417: Implement per-thread heap type refcounts (#122418)Sam Gross2024-08-0618-69/+427
| | | | | | | The free-threaded build partially stores heap type reference counts in distributed manner in per-thread arrays. This avoids reference count contention when creating or destroying instances. Co-authored-by: Ken Jin <kenjin@python.org>
* gh-121103: Update site module docs for free-threaded installs (#122737)Sam Gross2024-08-061-4/+13
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Fix duplicated words 'begins with a' in pathlib docstring (#122732)Виталий Дмитриев2024-08-061-1/+1
|
* gh-112301: Add macOS warning tracking tooling (#122211)Nate Ohlson2024-08-065-55/+117
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-120104: IDLE: Fix padding in config and search dialogs (#120107)Serhiy Storchaka2024-08-063-2/+3
|
* GH-120024: Move three more escaping calls out of conditional statements ↵Mark Shannon2024-08-063-10/+32
| | | | (GH-122734)
* gh-122058: `Lib/inspect`: Update docstrings for `isfunction`, `isgenerator`, ↵Kirill Podoprigora2024-08-063-10/+50
| | | | | | `isframe`, `iscode`. (#122059) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-122681: merge m_atan2() and c_atan2() helper functions (#122682)Sergey B Kirpichev2024-08-063-69/+41
|
* gh-122686: bump hypothesis from 6.104.2 to 6.108.10 in Tools (#122729)Sergey B Kirpichev2024-08-061-4/+1
| | | This drops attrs pinning.
* GH-120024: Refactor code generators to uses classes for emitting code. ↵Mark Shannon2024-08-064-274/+272
| | | | (GH-122730)
* gh-122581: Avoid data races when collecting parser statistics (#122694)Lysandros Nikolaou2024-08-062-0/+36
|
* GH-120024: Refactor code a bit so that escaping calls can be wrapped in ↵Mark Shannon2024-08-063-42/+78
| | | | spill code in code generator (GH-122693)
* Fix syntax in generate_re_casefix.py (#122699)Jelle Zijlstra2024-08-062-3/+3
| | | This was broken in gh-97963.
* gh-122595: Add more error checks in the compiler (GH-122596)Serhiy Storchaka2024-08-062-52/+145
|
* gh-122704: Fix reference leak in Modules/_pickle.c (GH-122705)Kirill Podoprigora2024-08-061-0/+4
|