Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-106078: Move static objects related to `CONTEXTVAR` to the decimal module ↵ | Charlie Zhao | 2023-07-08 | 2 | -29/+32 | |
| | | | | | | global state (#106395) Co-authored-by: Erlend E. Aasland <erlend@python.org> | |||||
* | Restore previous behavior of 'make regen-cases' (#106541) | Guido van Rossum | 2023-07-08 | 1 | -1/+12 | |
| | | | | | | | When running 'make regen-cases' just to check whether anything changed, it's annoying that even if nothing changes, the output files are touched, causing an expensiv rebuild of _bootstrap_python and anything it creates. So use consistently for all output files. | |||||
* | gh-105373: Remove C API global config vars in Python 3.14 (#106538) | Victor Stinner | 2023-07-07 | 2 | -44/+47 | |
| | | | | | Schedule the removal of C API global configuration variables in Python 3.14. Announce the removal to help C extension maintainers to upgrade their code. | |||||
* | gh-105373: Doc lists pending C API removals (#106537) | Victor Stinner | 2023-07-07 | 1 | -0/+80 | |
| | ||||||
* | gh-106535: Document PEP 387 Soft Deprecation (#106536) | Victor Stinner | 2023-07-07 | 2 | -2/+18 | |
| | | | Mark the optparse module as soft deprecated. | |||||
* | gh-103200: Fix performance issues with `zipimport.invalidate_caches()` ↵ | Desmond Cheong | 2023-07-07 | 3 | -25/+67 | |
| | | | | | | (GH-103208) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org> | |||||
* | gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302) | Nikita Sobolev | 2023-07-07 | 7 | -12/+20 | |
| | ||||||
* | gh-104584: Replace ENTER_EXECUTOR with the original in trace projection ↵ | Guido van Rossum | 2023-07-07 | 1 | -0/+6 | |
| | | | | (#106526) | |||||
* | Delete dead ceval code. (gh-106486) | Benjamin Peterson | 2023-07-07 | 1 | -5/+0 | |
| | ||||||
* | gh-104584: Allow unspecialized instructions in superblocks (#106497) | Guido van Rossum | 2023-07-07 | 4 | -128/+490 | |
| | | | | | | | | | | | | | | | | This adds several of unspecialized opcodes to superblocks: TO_BOOL, BINARY_SUBSCR, STORE_SUBSCR, UNPACK_SEQUENCE, LOAD_GLOBAL, LOAD_ATTR, COMPARE_OP, BINARY_OP. While we may not want that eventually, for now this helps finding bugs. There is a rudimentary test checking for UNPACK_SEQUENCE. Once we're ready to undo this, that would be simple: just replace the call to variable_used_unspecialized with a call to variable_used (as shown in a comment). Or add individual opcdes to FORBIDDEN_NAMES_IN_UOPS. | |||||
* | gh-104584: Move super-instruction special-casing to generator (#106500) | Guido van Rossum | 2023-07-07 | 3 | -39/+84 | |
| | | | | | | Instead of special-casing specific instructions, we add a few more special values to the 'size' field of expansions, so in the future we can automatically handle additional super-instructions in the generator. | |||||
* | gh-104683: clinic.py: refactor `Parameter` and `Function` as dataclasses ↵ | Alex Waygood | 2023-07-07 | 1 | -86/+57 | |
| | | | | (#106477) | |||||
* | gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on ↵ | Andrew Geng | 2023-07-07 | 3 | -0/+4 | |
| | | | | close(). (#106504) | |||||
* | GH-106057: Handle recursion errors in inline class calls properly. (GH-106108) | Mark Shannon | 2023-07-07 | 4 | -91/+108 | |
| | ||||||
* | gh-104584: Handle EXTENDED_ARG in superblock creation (#106489) | Guido van Rossum | 2023-07-06 | 2 | -0/+72 | |
| | | | With test. | |||||
* | gh-90876: Restore the ability to import multiprocessing when ↵ | Gregory P. Smith | 2023-07-06 | 3 | -8/+83 | |
| | | | | | | | | | `sys.executable` is `None` (#106464) Prevent `multiprocessing.spawn` from failing to *import* in environments where `sys.executable` is `None`. This regressed in 3.11 with the addition of support for path-like objects in multiprocessing. Adds a test decorator to have tests only run when part of test_multiprocessing_spawn to `_test_multiprocessing.py` so we can start to avoid re-running the same not-global-state specific test in all 3 modes when there is no need. | |||||
* | gh-104584: Clean up and fix uops tests and fix crash (#106492) | Guido van Rossum | 2023-07-06 | 2 | -26/+38 | |
| | | | | | | | | | | | | The uops test wasn't testing anything by default, and was failing when run with -Xuops. Made the two executor-related context managers global, so TestUops can use them (notably `with temporary_optimizer(opt)`). Made clear_executor() a little more thorough. Fixed a crash upon finalizing a uop optimizer, by adding a `tp_dealloc` handler. | |||||
* | closes gh-106479: fix typo in __cplusplus macro (gh-106480) | Dustin Rodrigues | 2023-07-06 | 1 | -1/+1 | |
| | ||||||
* | gh-104683: clinic.py: refactor four simple classes as dataclasses (#106476) | Alex Waygood | 2023-07-06 | 1 | -31/+20 | |
| | ||||||
* | gh-104584: Fix error handling from backedge optimization (#106484) | Guido van Rossum | 2023-07-06 | 4 | -11/+15 | |
| | | | | | | | | | | | | When `_PyOptimizer_BackEdge` returns `NULL`, we should restore `next_instr` (and `stack_pointer`). To accomplish this we should jump to `resume_with_error` instead of just `error`. The problem this causes is subtle -- the only repro I have is in PR gh-106393, at commit d7df54b139bcc47f5ea094bfaa9824f79bc45adc. But the fix is real (as shown later in that PR). While we're at it, also improve the debug output: the offsets at which traces are identified are now measured in bytes, and always show the start offset. This makes it easier to correlate executor calls with optimizer calls, and either with `dis` output. <!-- gh-issue-number: gh-104584 --> * Issue: gh-104584 <!-- /gh-issue-number --> | |||||
* | gh-106458: Mark `testthreadingmock.py` with `@requires_working_threading` ↵ | Mario Corchero | 2023-07-06 | 1 | -9/+11 | |
| | | | | | | | (GH-106366) Mark `testthreadingmock.py` with `threading_helper.requires_working_threading`. Also add longer delays to reduce the change of a race conditions on the tests that validate short timeouts. | |||||
* | Introduce a gate/check GHA job (#97533) | Sviatoslav Sydorenko | 2023-07-06 | 1 | -0/+57 | |
| | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | |||||
* | gh-104683: clinic.py: Don't needlessly reimplement ↵ | Alex Waygood | 2023-07-06 | 1 | -18/+2 | |
| | | | | | `contextlib.redirect_stdout` (#106478) clinic.py: Don't needlessly reimplement `contextlib.redirect_stdout` | |||||
* | gh-106238: Handle KeyboardInterrupt during logging._acquireLock() (GH-106239) | Ariel Eizenberg | 2023-07-06 | 2 | -1/+6 | |
| | | | Co-authored-by: Ariel Eizenberg <ariel.eizenberg@pagaya.com> | |||||
* | Doc: Add missing ref labels to exception groups/notes sections (#106465) | C.A.M. Gerlach | 2023-07-06 | 2 | -0/+4 | |
| | ||||||
* | gh-105256: What's New note for comprehension over locals() (#106378) | Carl Meyer | 2023-07-06 | 1 | -0/+6 | |
| | ||||||
* | gh-105340: include hidden fast-locals in locals() (#105715) | Carl Meyer | 2023-07-05 | 8 | -42/+158 | |
| | | | * gh-105340: include hidden fast-locals in locals() | |||||
* | gh-106292: restore checking __dict__ in cached_property.__get__ (#106380) | Carl Meyer | 2023-07-05 | 3 | -10/+36 | |
| | | | | | * gh-106292: restore checking __dict__ in cached_property.__get__ Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> | |||||
* | gh-96844: Improve error message of list.remove (gh-106455) | Dong-hee Na | 2023-07-05 | 4 | -5/+6 | |
| | ||||||
* | shlex docs: remove outdated note (#106463) | Jelle Zijlstra | 2023-07-05 | 1 | -6/+0 | |
| | | | As the versionchanged notice says, this note is no longer true on 3.12+. | |||||
* | gh-102542 Remove unused bytes object and bytes slicing (#106433) | JosephSBoyle | 2023-07-05 | 1 | -7/+4 | |
| | | | | | Remove unused bytes object and bytes slicing Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | |||||
* | Clarify state of CancelledError in doc (#106453) | Kristján Valur Jónsson | 2023-07-05 | 1 | -1/+1 | |
| | | | This change makes it explicit that asyncio.CancelledError is not a subclass of Exception. | |||||
* | gh-64595: Fix regression in file write logic in Argument Clinic (#106449) | Erlend E. Aasland | 2023-07-05 | 2 | -27/+15 | |
| | | | | | | | Revert the two commits that introduced the regressions: - gh-104152 - gh-104507 | |||||
* | gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (#106443) | Erlend E. Aasland | 2023-07-05 | 2 | -2/+3 | |
| | ||||||
* | tp_flags docs: fix indentation (#106420) | Jelle Zijlstra | 2023-07-05 | 1 | -9/+9 | |
| | ||||||
* | gh-104050: Partially annotate Argument Clinic CLanguage class (#106437) | Erlend E. Aasland | 2023-07-04 | 1 | -6/+19 | |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-106368: Add tests for formatting helpers in Argument Clinic (#106415) | Erlend E. Aasland | 2023-07-04 | 1 | -0/+164 | |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-104050: Annotate Argument Clinic parameter permutation helpers (#106431) | Erlend E. Aasland | 2023-07-04 | 1 | -7/+24 | |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-104050: Annotate toplevel functions in clinic.py (#106435) | Erlend E. Aasland | 2023-07-04 | 1 | -16/+47 | |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-106320: Fix specialize.c compilation by including pycore_pylifecycle.h ↵ | Guido van Rossum | 2023-07-04 | 1 | -0/+1 | |
| | | | | | (#106434) Compilation of Python/specialize.c was broken on macOS for me by gh-106400. | |||||
* | Add some codeowners for `Tools/clinic/` (#106430) | Alex Waygood | 2023-07-04 | 1 | -0/+4 | |
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | |||||
* | gh-106217: Truncate the issue body size of `new-bugs-announce-notifier` ↵ | Nikita Sobolev | 2023-07-04 | 1 | -1/+1 | |
| | | | | (#106423) | |||||
* | gh-61215: Rename `wait_until_any_call` to `wait_until_any_call_with` (#106414) | Mario Corchero | 2023-07-04 | 3 | -28/+28 | |
| | | | | | | mock: Rename `wait_until_any_call` to `wait_until_any_call_with` Rename the method to be more explicit that it expects the args and kwargs to wait for. | |||||
* | gh-106162: array: suppress warning in test_array (#106404) | Inada Naoki | 2023-07-04 | 1 | -0/+8 | |
| | | | array: suppress warning in test_array | |||||
* | gh-106320: Remove _PyInterpreterState_HasFeature() (#106425) | Victor Stinner | 2023-07-04 | 2 | -32/+32 | |
| | | | | | Remove the _PyInterpreterState_HasFeature() function from the C API: move it to the internal C API (pycore_interp.h). No longer export the function. | |||||
* | GH-106360: Support very basic superblock introspection (#106422) | Mark Shannon | 2023-07-04 | 8 | -14/+130 | |
| | | | * Add len() and indexing support to uop superblocks. | |||||
* | gh-106406: Fix _Py_IsInterpreterFinalizing() in _winapi.c (#106408) | Nikita Sobolev | 2023-07-04 | 1 | -0/+1 | |
| | ||||||
* | gh-106396: Special-case empty format spec to gen empty JoinedStr node (#106401) | Lysandros Nikolaou | 2023-07-04 | 3 | -0/+33 | |
| | ||||||
* | gh-106368: Add tests for permutation helpers in Argument Clinic (#106407) | Erlend E. Aasland | 2023-07-04 | 2 | -2/+108 | |
| | | | Added new test class PermutationTests() | |||||
* | GH-106008: Fix refleak when peepholing `None` comparisons (#106367) | Brandt Bucher | 2023-07-04 | 2 | -1/+3 | |
| |