summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-110697: Use CLOCK_RES in test_os.TimerfdTests (#111529)Victor Stinner2023-10-301-6/+6
| | | | More TimerfdTests tests tolerate a difference of 1 ms in measured elapsed time.
* gh-90815: Fix mimalloc atomic.h on Windows arm64 (#111527)Victor Stinner2023-10-301-1/+1
| | | | | | | mi_atomic_load_explicit() casts 'p' argument to drop the 'const' qualifier on Windows arm64 platform. Fix the compiler warning: 'function': different 'const' qualifiers (compiling source file ..\Objects\mimalloc\options.c)
* gh-90815: Fix mimalloc build on WASI (#111524)Victor Stinner2023-10-301-0/+1
| | | Include <unistd.h> to get sbrk() function.
* gh-90815: Fix _PyMem_MimallocEnabled() compiler warning (#111522)Victor Stinner2023-10-301-6/+6
| | | | | | Don't declare _PyMem_MimallocEnabled() if WITH_PYMALLOC macro is not defined (./configure --without-pymalloc). Fix also a typo in _PyInterpreterState_FinalizeAllocatedBlocks().
* Remove myself from typing CODEOWNERS (#111523)Ken Jin2023-10-301-1/+1
|
* gh-111181: Fix enum doctests (GH-111180)Nikita Sobolev2023-10-303-15/+22
| | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-111366: Correctly show custom syntax error messages in the codeop module ↵Pablo Galindo Salgado2023-10-303-5/+30
| | | | functions (#111384)
* gh-111284: Make multiprocessing tests with threads faster and more reliable ↵Serhiy Storchaka2023-10-301-9/+21
| | | | (GH-111285)
* gh-110481: Fix _Py_ThreadId for non-free-threaded mode (gh-111503)Donghee Na2023-10-301-3/+1
|
* gh-108082: C API: Add tests for PyErr_WriteUnraisable() (GH-111455)Serhiy Storchaka2023-10-303-0/+70
| | | | Also document the behavior when called with NULL.
* gh-109515: When generating deep frozen modules on Windows, use a list file ↵Riccardo Ghetta2023-10-303-30/+78
| | | | instead of arguments (GH-109516)
* gh-110481: Implement biased reference counting (gh-110764)Sam Gross2023-10-3029-52/+511
|
* gh-90815: Add mimalloc memory allocator (#109914)Dino Viehland2023-10-3061-158/+16789
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add mimalloc v2.12 Modified src/alloc.c to remove include of alloc-override.c and not compile new handler. Did not include the following files: - include/mimalloc-new-delete.h - include/mimalloc-override.h - src/alloc-override-osx.c - src/alloc-override.c - src/static.c - src/region.c mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different. * mimalloc: minimal changes for use in Python: - remove debug spam for freeing large allocations - use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests * Don't export mimalloc symbol in libpython. * Enable mimalloc as Python allocator option. * Add mimalloc MIT license. * Log mimalloc in Lib/test/pythoninfo.py. * Document new mimalloc support. * Use macro defs for exports as done in: https://github.com/python/cpython/pull/31164/ Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-111062: Reusable Windows build that supports free-threaded mode as the ↵Donghee Na2023-10-302-49/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conditional CI (#111493) * gh-111062 Set up free-threaded CI for windows Co-authored-by: Donghee Na <donghee.na@python.org> * Apply suggestions from code review Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update * Update names * Add files * Update * Revert "Update" This reverts commit 4f17e1af0dbce3b7959b93b41baaf040dee790cc. * fix --------- Co-authored-by: juanjose.tenorio <juanjose2611@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111062: Update name of reusable workflows for Ubuntu / macOS (gh-111494)Donghee Na2023-10-302-0/+2
| | | gh-111062 Update name of reusable workflows for linux / macOS
* gh-111062: Reusable ubuntu build that supports free-threaded mode as the ↵NCLI2023-10-302-58/+91
| | | | | | conditional CI (#111452) Co-authored-by: Donghee Na <donghee.na92@gmail.com>
* gh-106168: Check allocated instead of size index bounds in PyList_SET_ITEM() ↵scoder2023-10-301-1/+1
| | | | | (#111480) Check the index bound assertions in PyList_SET_ITEM() against [0:allocated] instead of [0:size] to re-allow valid use cases that assign within the allocated area.
* GH-111339: Fix initialization and finalization of static optimizer types ↵Savannah Ostrowski2023-10-294-19/+26
| | | | (GH-111430)
* gh-111165: Remove documentation for moved functions (GH-111467)Serhiy Storchaka2023-10-291-10/+0
|
* gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222)Nikita Sobolev2023-10-293-7/+15
| | | | | | | | | | | | | | | * gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` * Update Doc/library/socket.rst Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update asyncio-eventloop.rst * Update socket.rst --------- Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111347: Remove wrong assertion in test_sendfile (#111377)zcxsythenew2023-10-291-2/+5
| | | Windows is different.
* gh-111062: Build both default and free-threaded on macOS (gh-111449)Dima Tisnek2023-10-292-0/+14
|
* gh-94808: Add coverage test for number check (gh-111445)Evan Kohilas2023-10-292-0/+14
|
* gh-111062: Separate macOS build into a reusable workflow (gh-111444)Dima Tisnek2023-10-292-31/+43
|
* gh-66425: Remove the unreachable code to set `REMOTE_HOST` header (gh-111441)c-bata2023-10-292-4/+3
|
* gh-111426: Remove `test_cmd.test_coverage` (#111427)Nikita Sobolev2023-10-281-11/+1
|
* GH-110109: Move tests for `pathlib.Path.walk()` into main test classes. ↵Barney Gale2023-10-281-169/+169
| | | | (#110655)
* gh-79033: Try to fix asyncio.Server.wait_closed() again (GH-111336)Guido van Rossum2023-10-284-9/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Try to fix asyncio.Server.wait_closed() again I identified the condition that `wait_closed()` is intended to wait for: the server is closed *and* there are no more active connections. When this condition first becomes true, `_wakeup()` is called (either from `close()` or from `_detach()`) and it sets `_waiters` to `None`. So we just check for `self._waiters is None`; if it's not `None`, we know we have to wait, and do so. A problem was that the new test introduced in 3.12 explicitly tested that `wait_closed()` returns immediately when the server is *not* closed but there are currently no active connections. This was a mistake (probably a misunderstanding of the intended semantics). I've fixed the test, and added a separate test that checks exactly for this scenario. I also fixed an oddity where in `_wakeup()` the result of the waiter was set to the waiter itself. This result is not used anywhere and I changed this to `None`, to avoid a GC cycle. * Update Lib/asyncio/base_events.py --------- Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* CI: Include Python version in cache.config key (#111410)Hugo van Kemenade2023-10-281-7/+5
| | | | | * Include Python version in cache.config key, after Python setup * Remove EOL 3.7 from branch triggers
* gh-111342: fix typo in math.sumprod (GH-111416)Sergey B Kirpichev2023-10-283-1/+3
|
* gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (#110884)Guido van Rossum2023-10-272-12/+10
| | | | | - `ThreadedChildWatcher.close()` is now *officially* a no-op; `_join_threads()` never did anything. - Threads created by that class are now named `asyncio-waitpid-NNN`. - `test.test_asyncio.utils.TestCase.close_loop()` now waits for the child watcher's threads, but not forever; if a thread hangs, it raises `RuntimeError`.
* gh-59013: Make line number of function breakpoint more precise (#110582)Tian Gao2023-10-273-3/+63
|
* gh-108765: Include explicitly <unistd.h> in signalmodule.c (#111402)Victor Stinner2023-10-272-1/+5
| | | unistd.h is needed by alarm() and pause() functions.
* gh-111406: Fix broken link to bpython's site (#111407)Zack Cerza2023-10-271-1/+1
|
* Fix typos in import system docs (#111396)Jonathan Berthias2023-10-271-3/+3
|
* gh-111386: Fix `uint32_t` cast in `generated_cases.c.h` (#111387)Nikita Sobolev2023-10-272-2/+2
|
* gh-111388: Add `show_group` parameter to `traceback.format_exception_only` ↵Nikita Sobolev2023-10-274-8/+185
| | | | (#111390)
* gh-111276: Clarify docs and comments about the role of LC_CTYPE (#111319)Łukasz Langa2023-10-272-9/+12
| | | | | | | | Fix locale.LC_CTYPE documentation to no longer mention string.lower() et al. Those functions were removed in Python 3.0: https://docs.python.org/2/library/string.html#deprecated-string-functions Also, fix a comment in logging about locale-specific behavior of `str.lower()`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* no-issue: Remove unused variable in getpath.py (gh-111372)Satish Pokala2023-10-271-2/+0
|
* gh-89519: Remove classmethod descriptor chaining, deprecated since 3.11 ↵Raymond Hettinger2023-10-278-193/+25
| | | | (gh-110163)
* gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344)Nikita Sobolev2023-10-271-1/+1
|
* gh-109587: Allow "precompiled" perf-trampolines to largely mitigate the cost ↵gsallam2023-10-278-10/+199
| | | | of enabling perf-trampolines (#109666)
* gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is ↵Pablo Galindo Salgado2023-10-273-0/+19
| | | | encouintered (#111381)
* GH-94438: Fix RuntimeWarning for jump tests in test_sys_settrace (GH-111341)Tian Gao2023-10-261-2/+6
|
* GH-111293: Fix DirEntry.inode dropping higher bits on Windows (GH-111294)zcxsythenew2023-10-262-3/+4
|
* gh-111354: define names for RESUME oparg values (#111365)Irit Katriel2023-10-267-8/+16
|
* gh-111259: Optimize recursive wildcards in pathlib (GH-111303)Serhiy Storchaka2023-10-262-3/+4
| | | Regular expression pattern `(?s:.)` is much faster than `[\s\S]`.
* gh-109094: replace frame->prev_instr by frame->instr_ptr (#109095)Irit Katriel2023-10-2623-164/+249
|
* Output more details in the re tracing (GH-111357)Serhiy Storchaka2023-10-262-4/+42
|
* gh-111348: Fix direct invocation of `test_doctest`; remove ↵Nikita Sobolev2023-10-261-15/+1
| | | | | `test_doctest.test_coverage` (#111349) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>