Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-104572: Improve error messages for invalid constructs in PEP 695 contexts ↵ | Jelle Zijlstra | 2023-05-17 | 1 | -4/+4 |
| | | | | (#104573) | ||||
* | GH-103906: Remove immortal refcounting in the interpreter (GH-103909) | Brandt Bucher | 2023-05-16 | 2 | -509/+473 |
| | |||||
* | gh-103865: add monitoring support to LOAD_SUPER_ATTR (#103866) | Carl Meyer | 2023-05-16 | 6 | -229/+309 |
| | |||||
* | gh-103763: Implement PEP 695 (#103764) | Jelle Zijlstra | 2023-05-16 | 11 | -626/+2291 |
| | | | | | | | | | | | | | | This implements PEP 695, Type Parameter Syntax. It adds support for: - Generic functions (def func[T](): ...) - Generic classes (class X[T](): ...) - Type aliases (type X = ...) - New scoping when the new syntax is used within a class body - Compiler and interpreter changes to support the new syntax and scoping rules Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Eric Traut <eric@traut.com> Co-authored-by: Larry Hastings <larry@hastings.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-104482: Fix error handling bugs in ast.c (#104483) | Irit Katriel | 2023-05-15 | 2 | -19/+38 |
| | |||||
* | gh-104341: Adjust tstate_must_exit() to Respect Interpreter Finalization ↵ | Eric Snow | 2023-05-15 | 5 | -6/+32 |
| | | | | | (gh-104437) With the move to a per-interpreter GIL, this check slipped through the cracks. | ||||
* | gh-101819: Isolate `_io` (#101948) | Erlend E. Aasland | 2023-05-15 | 1 | -10/+0 |
| | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | gh-87092: avoid gcc warning on uninitialized struct field in assemble.c ↵ | Dong-hee Na | 2023-05-14 | 1 | -1/+2 |
| | | | | (#104460) | ||||
* | gh-104404: fix crasher with nested comprehensions plus lambdas (#104442) | Carl Meyer | 2023-05-13 | 1 | -7/+14 |
| | |||||
* | GH-104405: Add missing PEP 523 checks (GH-104406) | Brandt Bucher | 2023-05-12 | 4 | -403/+434 |
| | |||||
* | GH-103082: Filter LINE events in VM, to simplify tool implementation. ↵ | Mark Shannon | 2023-05-12 | 7 | -145/+178 |
| | | | | | | | | (GH-104387) When monitoring LINE events, instrument all instructions that can have a predecessor on a different line. Then check that the a new line has been hit in the instrumentation code. This brings the behavior closer to that of 3.11, simplifying implementation and porting of tools. | ||||
* | gh-104413: Fix refleak when super attribute throws AttributeError (#104414) | Jelle Zijlstra | 2023-05-12 | 2 | -114/+116 |
| | |||||
* | gh-104377: fix cell in comprehension that is free in outer scope (#104394) | Carl Meyer | 2023-05-11 | 1 | -3/+12 |
| | |||||
* | gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270) | Carl Meyer | 2023-05-11 | 5 | -287/+324 |
| | |||||
* | gh-87849: fix SEND specialization family definition (GH-104268) | Carl Meyer | 2023-05-11 | 3 | -176/+177 |
| | |||||
* | gh-104357: fix inlined comprehensions that close over iteration var (#104368) | Carl Meyer | 2023-05-11 | 1 | -6/+13 |
| | |||||
* | GH-102181: Improve specialization stats for SEND (GH-102182) | penguin_wwy | 2023-05-10 | 1 | -41/+45 |
| | |||||
* | gh-104263: Rely on Py_NAN and introduce Py_INFINITY (GH-104202) | Sebastian Berg | 2023-05-10 | 2 | -74/+1 |
| | | | | | | | | | | This PR removes `_Py_dg_stdnan` and `_Py_dg_infinity` in favour of using the standard `NAN` and `INFINITY` macros provided by C99. This change has the side-effect of fixing a bug on MIPS where the hard-coded value used by `_Py_dg_stdnan` gave a signalling NaN rather than a quiet NaN. --------- Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | ||||
* | gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441) | Carl Meyer | 2023-05-09 | 8 | -584/+915 |
| | | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | gh-104184: fix building --with-pydebug --enable-pystats (#104217) | Carl Meyer | 2023-05-09 | 1 | -1/+1 |
| | |||||
* | gh-104240: return code unit metadata from codegen (#104300) | Irit Katriel | 2023-05-09 | 1 | -3/+47 |
| | |||||
* | gh-99113: A Per-Interpreter GIL! (gh-104210) | Eric Snow | 2023-05-08 | 2 | -45/+14 |
| | | | | | This is the culmination of PEP 684 (and of my 8-year long multi-core Python project)! Each subinterpreter may now be created with its own GIL (via Py_NewInterpreterFromConfig()). If not so configured then the interpreter will share with the main interpreter--the status quo since subinterpreters were added decades ago. The main interpreter always has its own GIL and subinterpreters from Py_NewInterpreter() will always share with the main interpreter. | ||||
* | gh-103650: Fix perf maps address format (#103651) | Arthur Pastel | 2023-05-07 | 1 | -1/+1 |
| | |||||
* | gh-104240: make _PyCompile_CodeGen support different compilation modes (#104241) | Irit Katriel | 2023-05-07 | 1 | -2/+6 |
| | |||||
* | gh-104018: remove unused format "z" handling in string formatfloat() (#104107) | John Belmonte | 2023-05-07 | 1 | -1/+0 |
| | | | This is a cleanup overlooked in PR #104033. | ||||
* | gh-103886: Improve `builtins.__doc__` (#104179) | Tomas R | 2023-05-07 | 1 | -2/+9 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-99113: Make Sure the GIL is Acquired at the Right Places (gh-104208) | Eric Snow | 2023-05-06 | 3 | -40/+111 |
| | | | This is a pre-requisite for a per-interpreter GIL. Without it this change isn't strictly necessary. However, there is no real downside otherwise. | ||||
* | gh-104233: Fix "unused variable" warning in `ceval_gil.c` (#104234) | Nikita Sobolev | 2023-05-06 | 1 | -0/+2 |
| | |||||
* | gh-99113: Add PyInterpreterConfig.own_gil (gh-104204) | Eric Snow | 2023-05-05 | 2 | -6/+29 |
| | | | | | We also add PyInterpreterState.ceval.own_gil to record if the interpreter actually has its own GIL. Note that for now we don't actually respect own_gil; all interpreters still share the one GIL. However, PyInterpreterState.ceval.own_gil does reflect PyInterpreterConfig.own_gil. That lie is a temporary one that we will fix when the GIL really becomes per-interpreter. | ||||
* | gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) | Eric Snow | 2023-05-05 | 5 | -0/+5 |
| | | | Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204). | ||||
* | gh-99113: Share the GIL via PyInterpreterState.ceval.gil (gh-104203) | Eric Snow | 2023-05-05 | 2 | -39/+60 |
| | | | In preparation for a per-interpreter GIL, we add PyInterpreterState.ceval.gil, set it to the shared GIL for each interpreter, and use that rather than using _PyRuntime.ceval.gil directly. Note that _PyRuntime.ceval.gil is still the actual GIL. | ||||
* | GH-96803: Add three C-API functions to make _PyInterpreterFrame less opaque ↵ | Mark Shannon | 2023-05-05 | 3 | -3/+20 |
| | | | | for users of PEP 523. (GH-96849) | ||||
* | gh-103323: Remove PyRuntimeState_GetThreadState() (#104171) | Victor Stinner | 2023-05-04 | 4 | -9/+7 |
| | | | | | This function no longer makes sense, since its runtime parameter is no longer used. Use directly _PyThreadState_GET() and _PyInterpreterState_GET() instead. | ||||
* | gh-103509: PEP 697 -- Limited C API for Extending Opaque Types (GH-103511) | Petr Viktorin | 2023-05-04 | 1 | -0/+12 |
| | | | | Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | gh-103845: Remove line & instruction instrumentations before adding them ↵ | Tian Gao | 2023-05-03 | 1 | -8/+33 |
| | | | | back (GH-103851) | ||||
* | GH-84976: Move Lib/datetime.py to Lib/_pydatetime | Paul Ganssle | 2023-05-03 | 1 | -0/+1 |
| | | | | | | This breaks the tests, but we are keeping it as a separate commit so that the move operation and editing of the moved files are separate, for a cleaner history. | ||||
* | gh-104109: Expose Py_NewInterpreterFromConfig() in the Public C-API (gh-104110) | Eric Snow | 2023-05-03 | 1 | -7/+8 |
| | | | | | We also expose PyInterpreterConfig. This is part of the PEP 684 (per-interpreter GIL) implementation. We will add docs as soon as we can. FYI, I'm adding the new config field for per-interpreter GIL in gh-99114. | ||||
* | gh-94673: Hide Objects in PyTypeObject Behind Accessors (gh-104074) | Eric Snow | 2023-05-02 | 1 | -1/+1 |
| | | | This makes it much cleaner to move more PyTypeObject fields to PyInterpreterState. | ||||
* | gh-94673: Properly Initialize and Finalize Static Builtin Types for Each ↵ | Eric Snow | 2023-05-02 | 4 | -28/+26 |
| | | | | | Interpreter (gh-104072) Until now, we haven't been initializing nor finalizing the per-interpreter state properly. | ||||
* | gh-87092: Expose assembler to unit tests (#103988) | Irit Katriel | 2023-05-01 | 2 | -33/+102 |
| | |||||
* | gh-84436: Immortalize in _PyStructSequence_InitBuiltinWithFlags() (gh-104054) | Eric Snow | 2023-05-01 | 3 | -9/+9 |
| | | | This also does some cleanup. | ||||
* | gh-103895: Improve how invalid `Exception.__notes__` are displayed (#103897) | Carey Metcalfe | 2023-05-01 | 1 | -1/+4 |
| | |||||
* | gh-98003: Inline call frames for CALL_FUNCTION_EX (GH-98004) | Ken Jin | 2023-04-30 | 3 | -43/+127 |
| | |||||
* | gh-87092: change assembler to use instruction sequence instead of CFG (#103933) | Irit Katriel | 2023-04-29 | 3 | -75/+80 |
| | |||||
* | GH-103082: Code cleanup in instrumentation code (#103474) | Mark Shannon | 2023-04-29 | 3 | -36/+39 |
| | |||||
* | gh-98040: Remove just the `imp` module (#98573) | Barry Warsaw | 2023-04-28 | 4 | -27/+19 |
| | |||||
* | gh-103978: avoid using 'class' as an identifier (#103979) | Carl Meyer | 2023-04-28 | 1 | -3/+3 |
| | |||||
* | gh-94673: Ensure Builtin Static Types are Readied Properly (gh-103940) | Eric Snow | 2023-04-27 | 6 | -41/+16 |
| | | | There were cases where we do unnecessary work for builtin static types. This also simplifies some work necessary for a per-interpreter GIL. | ||||
* | gh-103879: Fix refleak in super specialization (#103882) | Jelle Zijlstra | 2023-04-26 | 1 | -0/+2 |
| | |||||
* | gh-87729: specialize LOAD_SUPER_ATTR_METHOD (#103809) | Carl Meyer | 2023-04-25 | 5 | -291/+390 |
| |