summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* GH-111213: Fix a few broken stats (GH-111216)Mark Shannon2023-10-262-7/+19
|
* GH-111339: Change `valid` property of executors to `is_valid()` method ↵Mark Shannon2023-10-262-19/+19
| | | | (GH-111350)
* bpo-43950: handle wide unicode characters in tracebacks (#28150)Batuhan Taskaya2023-10-262-14/+98
|
* gh-67224: Show source lines in tracebacks when using the -c option when ↵Pablo Galindo Salgado2023-10-2613-36/+104
| | | | running Python (#111200)
* Docs: Add `restart_events()` and positional arg semantics for ↵Tian Gao2023-10-251-8/+13
| | | | | `sys.monitoring` (#111291) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-110679: Improved markup in enum.rst (GH-110747)Khalil Mouawad2023-10-251-15/+15
|
* gh-100762: Fix optimization in gen_close (#111069)Irit Katriel2023-10-253-8/+5
|
* gh-111165: Add missed "support." prefix for "verbose" (GH-111327)Serhiy Storchaka2023-10-251-1/+1
|
* gh-108590: Improve sqlite3 docs on encoding issues and how to handle those ↵Erlend E. Aasland2023-10-251-33/+50
| | | | | | | | | | | | (#108699) Add a guide for how to handle non-UTF-8 text encodings. Link to that guide from the 'text_factory' docs. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Corvin <corvin@corvin.dev> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-111187: Postpone removal version for locale.getdefaultlocale() to 3.15 ↵Hugo van Kemenade2023-10-256-11/+27
| | | | (#111188)
* gh-111230: Fix errors checking in _ssl module init (#111232)Nikita Sobolev2023-10-252-82/+72
| | | Introduce ADD_INT_CONST macro wrapper for PyModule_AddIntConstant()
* gh-111174: Fix crash in getbuffer() called repeatedly for empty BytesIO ↵Serhiy Storchaka2023-10-253-3/+20
| | | | (GH-111210)
* gh-111165: Move test running code from test.support to libregrtest (GH-111166)Serhiy Storchaka2023-10-2512-342/+266
| | | | Remove no longer used functions run_unittest() and run_doctest() from the test.support module.
* gh-106320: Re-add some PyLong/PyDict C-API functions (GH-#111162)scoder2023-10-2510-55/+44
| | | | | | | | * gh-106320: Re-add _PyLong_FromByteArray(), _PyLong_AsByteArray() and _PyLong_GCD() to the public header files since they are used by third-party packages and there is no efficient replacement. See https://github.com/python/cpython/issues/111140 See https://github.com/python/cpython/issues/111139 * gh-111262: Re-add _PyDict_Pop() to have a C-API until a new public one is designed.
* gh-111065: Add more tests for the C API with the PySys_ prefix (GH-111067)Serhiy Storchaka2023-10-258-72/+215
| | | | | | | * Move existing tests for PySys_GetObject() and PySys_SetObject() into specialized files. * Add test for PySys_GetXOptions() using _testcapi. * Add tests for PySys_FormatStdout(), PySys_FormatStderr(), PySys_WriteStdout() and PySys_WriteStderr() using ctypes.
* Bump test deps: `ruff` and `mypy` (#111288)Artyom Romanov2023-10-252-2/+2
|
* gh-111295: Fix error checking in time extension module init (#111296)Nikita Sobolev2023-10-252-10/+18
| | | Introduce ADD_INT macro wrapper for PyModule_AddIntConstant()
* gh-111233: Fix error checking in select extension module init (#111234)Nikita Sobolev2023-10-252-66/+85
| | | Introduce ADD_INT macro wrapper for PyModule_AddIntConstant()
* gh-111253: Fix error checking in _socket module init (#111254)Nikita Sobolev2023-10-252-2/+3
|