Skip to content
Permalink
main

Commits on Jul 26, 2021

  1. Fix typo in dataclasses documentation (#27360)

    "affect" -> "effect"
    thomkeh committed Jul 26, 2021
  2. bpo-44590: Lazily allocate frame objects (GH-27077)

    * Convert "specials" array to InterpreterFrame struct, adding f_lasti, f_state and other non-debug FrameObject fields to it.
    
    * Refactor, calls pushing the call to the interpreter upward toward _PyEval_Vector.
    
    * Compute f_back when on thread stack, only filling in value when frame object outlives stack invocation.
    
    * Move ownership of InterpreterFrame in generator from frame object to generator object.
    
    * Do not create frame objects for Python calls.
    
    * Do not create frame objects for generators.
    markshannon committed Jul 26, 2021
  3. bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349)

    Replace sentence with confusing "pseudo-module" with two sentences
    separating future statements and the __future__ module.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    StevenHsuYL and terryjreedy committed Jul 26, 2021

Commits on Jul 25, 2021

  1. bpo-43950: support some multi-line expressions for PEP 657 (GH-27339)

    This is basically something that I noticed up while fixing test runs for another issue. It is really common to have multiline calls, and when they fail the display is kind of weird since we omit the annotations. E.g;
    
    ```
     $ ./python t.py
    Traceback (most recent call last):
      File "/home/isidentical/cpython/cpython/t.py", line 11, in <module>
        frame_1()
        ^^^^^^^^^
      File "/home/isidentical/cpython/cpython/t.py", line 5, in frame_1
        frame_2(              
      File "/home/isidentical/cpython/cpython/t.py", line 2, in frame_2
        return a / 0 / b / c
               ~~^~~
    ZeroDivisionError: division by zero
    ```
    
    This patch basically adds support for annotating the rest of the line, if the instruction covers multiple lines (start_line != end_line).
    
    Automerge-Triggered-By: GH:isidentical
    isidentical committed Jul 25, 2021
  2. bpo-42378: fixed log truncation on logging shutdown (GH-27310)

    Automerge-Triggered-By: GH:vsajip
    akulakov committed Jul 25, 2021

Commits on Jul 24, 2021

  1. bpo-44676: Serialize the union type using only public API (GH-27323)

    Remove also the _from_args() constructor.
    serhiy-storchaka committed Jul 24, 2021
  2. bpo-44676: Fix reference leaks in union_reduce (GH-27332)

    Automerge-Triggered-By: GH:pablogsal
    pablogsal committed Jul 24, 2021
  3. bpo-44731: Simplify the union type implementation (GH-27318)

    Remove direct support of typing types in the C code because they are already supported by defining methods __or__ and __ror__ in the Python code.
    serhiy-storchaka committed Jul 24, 2021
  4. Revert "bpo-44717: improve AttributeError on circular imports of subm…

    …odules (GH-27299)" (GH-27331)
    
    This reverts commit 8072a11.
    pablogsal committed Jul 24, 2021
  5. bpo-44717: improve AttributeError on circular imports of submodules (G…

    …H-27299)
    
    Signed-off-by: Filipe LaΓ­ns <lains@riseup.net>
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    FFY00 and ambv committed Jul 24, 2021
  6. bpo-44353: Expand NewType tests for complex __qualname__. (#27311)

    Make NewType pickleable by name.
    serhiy-storchaka committed Jul 24, 2021

Commits on Jul 23, 2021

  1. Fix a deprecation warning in typing tests (#27312)

    The test was accessing typing.{io,re}.__all__, which triggered the
    warning. This check isn't necessary anymore, since the objects from
    typing.{io,re}.__all__ are in typing.__all__ as well, since Python 3.10.
    srittau committed Jul 23, 2021
  2. bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make Py_TPFLAGS_HAVE_VE…

    …RSION_TAG no-op (GH-27260)
    
    * Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG
        
        The field is always present in the type struct, as explained
        in the added comment.
    
    * Remove Py_TPFLAGS_HAVE_AM_SEND
        
        The flag is not needed, and since it was added in 3.10 it can be removed now.
    encukou committed Jul 23, 2021
  3. Improve consistency of colorsys.rgb_to_hsv (GH-27277)

    Cache repeated difference to make code easier to read and consistent with colorsys.rgb_to_hls.
    seb-hub committed Jul 23, 2021
  4. bpo-29298: Fix crash with required subparsers without dest (GH-3680)

    Automerge-Triggered-By: GH:encukou
    asottile committed Jul 23, 2021

Commits on Jul 22, 2021

  1. bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297)

    This fixes a small typo. The code fragment should not be quoted. Thank you
    @merwok for the feedback.
    jdevries3133 committed Jul 22, 2021
  2. bpo-44353: Implement typing.NewType __call__ method in C (#27262)

    Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
    Co-authored-by: Denis Laxalde <denis@laxalde.org>
    3 people committed Jul 22, 2021
  3. bpo-44708: Only re-run test methods that match names of previously fa…

    …iling test methods (GH-27287)
    
    * Move to a static argparse.Namespace subclass
    * Roughly annotate runtest.py
    * Refactor libregrtest to use lossless test result objects
    * Only re-run test methods that match names of previously failing test methods
    * Adopt tests to cover test method name matching
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    ambv and pablogsal committed Jul 22, 2021
Older