summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Delete dead ceval code. (gh-106486)Benjamin Peterson2023-07-071-5/+0
|
* gh-104584: Allow unspecialized instructions in superblocks (#106497)Guido van Rossum2023-07-074-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 Rossum2023-07-073-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 Waygood2023-07-071-86/+57
| | | | (#106477)
* gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on ↵Andrew Geng2023-07-073-0/+4
| | | | close(). (#106504)
* GH-106057: Handle recursion errors in inline class calls properly. (GH-106108)Mark Shannon2023-07-074-91/+108
|
* gh-104584: Handle EXTENDED_ARG in superblock creation (#106489)Guido van Rossum2023-07-062-0/+72
| | | With test.
* gh-90876: Restore the ability to import multiprocessing when ↵Gregory P. Smith2023-07-063-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 Rossum2023-07-062-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 Rodrigues2023-07-061-1/+1
|
* gh-104683: clinic.py: refactor four simple classes as dataclasses (#106476)Alex Waygood2023-07-061-31/+20
|
* gh-104584: Fix error handling from backedge optimization (#106484)Guido van Rossum2023-07-064-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 Corchero2023-07-061-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 Sydorenko2023-07-061-0/+57
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-104683: clinic.py: Don't needlessly reimplement ↵Alex Waygood2023-07-061-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 Eizenberg2023-07-062-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. Gerlach2023-07-062-0/+4
|
* gh-105256: What's New note for comprehension over locals() (#106378)Carl Meyer2023-07-061-0/+6
|
* gh-105340: include hidden fast-locals in locals() (#105715)Carl Meyer2023-07-058-42/+158
| | | * gh-105340: include hidden fast-locals in locals()
* gh-106292: restore checking __dict__ in cached_property.__get__ (#106380)Carl Meyer2023-07-053-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 Na2023-07-054-5/+6
|
* shlex docs: remove outdated note (#106463)Jelle Zijlstra2023-07-051-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)JosephSBoyle2023-07-051-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ónsson2023-07-051-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. Aasland2023-07-052-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. Aasland2023-07-052-2/+3
|
* tp_flags docs: fix indentation (#106420)Jelle Zijlstra2023-07-051-9/+9
|
* gh-104050: Partially annotate Argument Clinic CLanguage class (#106437)Erlend E. Aasland2023-07-041-6/+19
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106368: Add tests for formatting helpers in Argument Clinic (#106415)Erlend E. Aasland2023-07-041-0/+164
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104050: Annotate Argument Clinic parameter permutation helpers (#106431)Erlend E. Aasland2023-07-041-7/+24
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104050: Annotate toplevel functions in clinic.py (#106435)Erlend E. Aasland2023-07-041-16/+47
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106320: Fix specialize.c compilation by including pycore_pylifecycle.h ↵Guido van Rossum2023-07-041-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 Waygood2023-07-041-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 Sobolev2023-07-041-1/+1
| | | | (#106423)
* gh-61215: Rename `wait_until_any_call` to `wait_until_any_call_with` (#106414)Mario Corchero2023-07-043-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 Naoki2023-07-041-0/+8
| | | array: suppress warning in test_array
* gh-106320: Remove _PyInterpreterState_HasFeature() (#106425)Victor Stinner2023-07-042-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 Shannon2023-07-048-14/+130
| | | * Add len() and indexing support to uop superblocks.
* gh-106406: Fix _Py_IsInterpreterFinalizing() in _winapi.c (#106408)Nikita Sobolev2023-07-041-0/+1
|
* gh-106396: Special-case empty format spec to gen empty JoinedStr node (#106401)Lysandros Nikolaou2023-07-043-0/+33
|
* gh-106368: Add tests for permutation helpers in Argument Clinic (#106407)Erlend E. Aasland2023-07-042-2/+108
| | | Added new test class PermutationTests()
* GH-106008: Fix refleak when peepholing `None` comparisons (#106367)Brandt Bucher2023-07-042-1/+3
|
* gh-106320: Remove private pylifecycle.h functions (#106400)Victor Stinner2023-07-0419-76/+104
| | | | | | | Remove private pylifecycle.h functions: move them to the internal C API ( pycore_atexit.h, pycore_pylifecycle.h and pycore_signal.h). No longer export most of these functions. Move _testcapi.test_atexit() to _testinternalcapi.
* gh-106320: Remove _PyUnicode_TransformDecimalAndSpaceToASCII() (#106398)Victor Stinner2023-07-046-50/+56
| | | | | | | | Remove private _PyUnicode_TransformDecimalAndSpaceToASCII() and other private _PyUnicode C API functions: move them to the internal C API (pycore_unicodeobject.h). No longer most of these functions. Replace _testcapi.unicode_transformdecimalandspacetoascii() with _testinternal._PyUnicode_TransformDecimalAndSpaceToASCII().
* gh-106320: Remove _PyBytesWriter C API (#106399)Victor Stinner2023-07-045-82/+86
| | | | Remove the _PyBytesWriter C API: move it to the internal C API (pycore_bytesobject.h).
* gh-106320: Remove private _PyUnicode codecs C API functions (#106385)Victor Stinner2023-07-043-106/+101
| | | | | Remove private _PyUnicode codecs C API functions: move them to the internal C API (pycore_unicodeobject.h). No longer export most of these functions.
* gh-106368: Increase Argument Clinic test coverage (#106389)Erlend E. Aasland2023-07-031-0/+24
| | | | | | Add: - test_disallowed_gropuing__no_matching_bracket - test_double_slash
* gh-106320: Fix _PyImport_GetModuleAttr() declaration (#106386)Victor Stinner2023-07-031-2/+2
| | | Replace PyAPI_DATA() with PyAPI_FUNC().
* gh-106368: Harden Argument Clinic parser tests (#106384)Erlend E. Aasland2023-07-031-42/+68
|
* gh-106320: Remove private _PyImport C API functions (#106383)Victor Stinner2023-07-038-22/+46
| | | | | | * Remove private _PyImport C API functions: move them to the internal C API (pycore_import.h). * No longer export most of these private functions. * _testcapi avoids private _PyImport_GetModuleAttrString().