Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-90300: Fix cmdline.rst (GH-116721) | Serhiy Storchaka | 2024-03-13 | 2 | -7/+10 | |
| | | | | * Fix the description of the "-b" option. * Add references to environment variables for "-s" and "-X dev" options. | |||||
* | gh-115419: Change default sym to not_null (GH-116562) | Ken Jin | 2024-03-13 | 4 | -94/+104 | |
| | ||||||
* | gh-116714: Handle errors correctly in `PyFloat_GetInfo` (#116715) | Nikita Sobolev | 2024-03-13 | 1 | -8/+13 | |
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | |||||
* | gh-116401: Fix blocking os.fwalk() and shutil.rmtree() on opening a named ↵ | Serhiy Storchaka | 2024-03-13 | 6 | -8/+113 | |
| | | | | pipe (GH-116421) | |||||
* | gh-116626: Emit `CALL` events for all `INSTRUMENTED_CALL_FUNCTION_EX` ↵ | Tian Gao | 2024-03-13 | 4 | -28/+45 | |
| | | | | (GH-116627) | |||||
* | gh-96471: Add ShutDown to queue.py '__all__' (#116699) | Laurie O | 2024-03-13 | 1 | -1/+9 | |
| | ||||||
* | Modernize roundrobin() recipe and improve variable names (gh-116710) | Raymond Hettinger | 2024-03-13 | 1 | -17/+14 | |
| | ||||||
* | gh-116491: Improve `test_win32_ver` (#116506) | Nikita Sobolev | 2024-03-13 | 1 | -1/+29 | |
| | ||||||
* | gh-115264: Fix `test_functools` with `-00` mode (#115276) | Nikita Sobolev | 2024-03-13 | 1 | -3/+12 | |
| | ||||||
* | gh-111307: Update design FAQ 'switch' entry (#115899) | Terry Jan Reedy | 2024-03-13 | 1 | -3/+8 | |
| | ||||||
* | Docs: fix broken links (#116651) | Mariusz Felisiak | 2024-03-13 | 5 | -5/+5 | |
| | ||||||
* | Minor clarity improvement for the iter_index() recipe. Also add value ↵ | Raymond Hettinger | 2024-03-13 | 1 | -4/+21 | |
| | | | | subsequence tests. (gh-116696) | |||||
* | GH-116554: Relax list.sort()'s notion of "descending" runs (#116578) | Tim Peters | 2024-03-13 | 4 | -66/+156 | |
| | | | | | | | | | | | | | | | | | | | | * GH-116554: Relax list.sort()'s notion of "descending" run Rewrote `count_run()` so that sub-runs of equal elements no longer end a descending run. Both ascending and descending runs can have arbitrarily many sub-runs of arbitrarily many equal elements now. This is tricky, because we only use ``<`` comparisons, so checking for equality doesn't come "for free". Surprisingly, it turned out there's a very cheap (one comparison) way to determine whether an ascending run consisted of all-equal elements. That sealed the deal. In addition, after a descending run is reversed in-place, we now go on to see whether it can be extended by an ascending run that just happens to be adjacent. This succeeds in finding at least one additional element to append about half the time, and so appears to more than repay its cost (the savings come from getting to skip a binary search, when a short run is artificially forced to length MIINRUN later, for each new element `count_run()` can add to the initial run). While these have been in the back of my mind for years, a question on StackOverflow pushed it to action: https://stackoverflow.com/questions/78108792/ They were wondering why it took about 4x longer to sort a list like: [999_999, 999_999, ..., 2, 2, 1, 1, 0, 0] than "similar" lists. Of course that runs very much faster after this patch. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> | |||||
* | gh-116682: stdout may be empty in test_cancel_futures_wait_false (#116683) | Sam Gross | 2024-03-13 | 1 | -1/+3 | |
| | | | | If the `shutdown()` call happens before the worker thread starts executing the task, then nothing will be printed to stdout. | |||||
* | Merge branch 'main' of https://github.com/python/cpython | Thomas Wouters | 2024-03-12 | 11 | -162/+239 | |
|\ | ||||||
| * | GH-116098: Remove dead frame object creation code (GH-116687) | Tian Gao | 2024-03-12 | 2 | -83/+9 | |
| | | ||||||
| * | Add `typing.NamedTuple` in glossary section for named tuples (#108327) | Tushar Sadhwani | 2024-03-12 | 1 | -4/+5 | |
| | | ||||||
| * | gh-116621: Set manual critical section for list.extend (gh-116657) | Donghee Na | 2024-03-12 | 2 | -64/+97 | |
| | | ||||||
| * | Beef-up tests for the itertool docs. (gh-116679) | Raymond Hettinger | 2024-03-12 | 1 | -9/+103 | |
| | | ||||||
| * | gh-89547: typing.rst: Add note about change in behavior with ClassVar/Final ↵ | Jelle Zijlstra | 2024-03-12 | 1 | -0/+8 | |
| | | | | | | | | (#116686) | |||||
| * | gh-116307: Proper fix for 'mod' leaking across importlib tests (#116680) | Jason R. Coombs | 2024-03-12 | 3 | -1/+16 | |
| | | | | | | gh-116307: Create a new import helper 'isolated modules' and use that instead of 'Clean Import' to ensure that tests from importlib_resources don't leave modules in sys.modules. | |||||
| * | CI: Process stale issues twice per day (#116636) | Hugo van Kemenade | 2024-03-12 | 1 | -1/+1 | |
| | | ||||||
* | | Post 3.13.0a5 | Thomas Wouters | 2024-03-12 | 1 | -1/+1 | |
| | | ||||||
* | | Python 3.13.0a5v3.13.0a5 | Thomas Wouters | 2024-03-12 | 117 | -293/+1231 | |
|/ | ||||||
* | gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (#116658) | Victor Stinner | 2024-03-12 | 1 | -0/+1 | |
| | | | Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails. | |||||
* | gh-116604: Check for `gcstate->enabled` in _Py_RunGC in free-threaded build ↵ | Sam Gross | 2024-03-12 | 1 | -0/+4 | |
| | | | | | | | | (#116663) This isn't strictly necessary because the implementation of `gc_should_collect` already checks `gcstate->enabled` in the free-threaded build, but it seems like a good idea until the common pieces of gc.c and gc_free_threading.c are refactored out. | |||||
* | gh-116127: PEP-705: Add `ReadOnly` support for `TypedDict` (#116350) | Nikita Sobolev | 2024-03-12 | 5 | -11/+182 | |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | |||||
* | Fix code comment regarding DK_ENTRIES (GH-113960) | Matthias Diener | 2024-03-12 | 1 | -1/+1 | |
| | | | fix code comment regarding dict entries | |||||
* | gh-116616: Use relaxed atomic ops to access socket module defaulttimeout ↵ | Erlend E. Aasland | 2024-03-12 | 1 | -5/+6 | |
| | | | | | (#116623) Co-authored-by: Sam Gross <colesbury@gmail.com> | |||||
* | gh-116604: Correctly honor the gc status when calling _Py_RunGC (#116628) | Pablo Galindo Salgado | 2024-03-12 | 3 | -0/+32 | |
| | ||||||
* | gh-110819: Fix ‘kind’ may be used uninitialized warning in `longobject` ↵ | Nikita Sobolev | 2024-03-12 | 1 | -28/+35 | |
| | | | | (#116599) | |||||
* | gh-116541: Handle errors correctly in `_pystatvfs_fromstructstatvfs` (#116542) | Nikita Sobolev | 2024-03-12 | 1 | -32/+36 | |
| | ||||||
* | gh-89547: Support for nesting special forms like Final (#116096) | Mehdi Drissi | 2024-03-12 | 4 | -14/+32 | |
| | ||||||
* | gh-116145: Update macOS installer to Tcl/Tk 8.6.14 (GH-116151) | Christopher Chavez | 2024-03-12 | 3 | -86/+5 | |
| | ||||||
* | gh-85283: Convert grp extension to the limited C API (#116611) | Victor Stinner | 2024-03-12 | 8 | -88/+20 | |
| | | | | posixmodule.h: remove check on the limited C API, since these helpers are not part of the public C API. | |||||
* | gh-113538: Revert "gh-113538: Add asycio.Server.{close,abort}_clients ↵ | Guido van Rossum | 2024-03-12 | 8 | -152/+20 | |
| | | | | | | | | | | (#114432)" (#116632) Revert "gh-113538: Add asycio.Server.{close,abort}_clients (#114432)" Reason: The new test doesn't always pass: https://github.com/python/cpython/pull/116423#issuecomment-1989425489 This reverts commit 1d0d49a7e86257ff95b4de0685e6997d7533993c. | |||||
* | gh-108494: Fix Argument Clinic LIMITED_CAPI_REGEX (#116610) | Victor Stinner | 2024-03-11 | 13 | -36/+26 | |
| | | | Accept spaces in "# define Py_LIMITED_API 0x030d0000". | |||||
* | gh-116600: [Enum] fix global Flag repr (GH-116615) | Ethan Furman | 2024-03-11 | 3 | -1/+4 | |
| | | | | | | | * and fix global flag repr * Update Misc/NEWS.d/next/Library/2024-03-11-12-11-10.gh-issue-116600.FcNBy_.rst Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> | |||||
* | gh-116563: Update tutorial error example (#116569) | Terry Jan Reedy | 2024-03-11 | 1 | -4/+4 | |
| | | | | | There now may be multiple carets pointing at a token rather than just a character. Fix the sentence about possible causes. | |||||
* | gh-90095: Make .pdbrc work properly and add some reasonable tests (#110496) | Tian Gao | 2024-03-11 | 3 | -96/+101 | |
| | ||||||
* | gh-116040: [Enum] fix test_empty_names test (GH-116508) | Ethan Furman | 2024-03-11 | 2 | -14/+8 | |
| | | | * and fix _not_given usage | |||||
* | gh-71052: Use `raise_signal` in `ThreadSignals.test_signals` (#116423) | Malcolm Smith | 2024-03-11 | 1 | -18/+7 | |
| | | | Use `raise_signal` rather than `kill` in `ThreadSignals.test_signals` | |||||
* | gh-113538: Add asycio.Server.{close,abort}_clients (#114432) | Pierre Ossman (ThinLinc team) | 2024-03-11 | 8 | -20/+152 | |
| | | | | | | These give applications the option of more forcefully terminating client connections for asyncio servers. Useful when terminating a service and there is limited time to wait for clients to finish up their work. | |||||
* | gh-71052: Change Android's `sys.platform` from "linux" to "android" | Malcolm Smith | 2024-03-11 | 24 | -78/+94 | |
| | | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | |||||
* | gh-116515: Clear thread-local state before tstate_delete_common() (#116517) | Sam Gross | 2024-03-11 | 1 | -1/+2 | |
| | | | | | | | This moves `current_fast_clear()` up so that the current thread state is `NULL` while running `tstate_delete_common()`. This doesn't fix any bugs, but it means that we are more consistent that `_PyThreadState_GET() != NULL` means that the thread is "attached". | |||||
* | GH-115976: Add WASI to CI (GH-116516) | Brett Cannon | 2024-03-11 | 2 | -0/+81 | |
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | |||||
* | gh-110850: Fix _PyTime_FromSecondsDouble() API (#116606) | Victor Stinner | 2024-03-11 | 4 | -31/+40 | |
| | | | | | | | | Return 0 on success. Set an exception and return -1 on error. Fix os.timerfd_settime(): properly report exceptions on _PyTime_FromSecondsDouble() failure. No longer export _PyTime_FromSecondsDouble(). | |||||
* | gh-116167: Allow disabling the GIL with `PYTHON_GIL=0` or `-X gil=0` (#116338) | Brett Simmers | 2024-03-11 | 12 | -1/+163 | |
| | | | | | | | | | In free-threaded builds, running with `PYTHON_GIL=0` will now disable the GIL. Follow-up issues track work to re-enable the GIL when loading an incompatible extension, and to disable the GIL by default. In order to support re-enabling the GIL at runtime, all GIL-related data structures are initialized as usual, and disabling the GIL simply sets a flag that causes `take_gil()` and `drop_gil()` to return early. | |||||
* | gh-116417: Build _testinternalcapi with limited C API version 3.5 (#116598) | Victor Stinner | 2024-03-11 | 3 | -2/+15 | |
| | ||||||
* | GH-116596: Better determination of escaping uops. (GH-116597) | Mark Shannon | 2024-03-11 | 5 | -30/+47 | |
| |