Skip to content
Permalink
main

Commits on Jun 10, 2021

  1. bpo-44348: Move trace-info to thread-state (GH-26623)

    * Move trace-info to thread state.
    
    * Correct output for pdb when turning on tracing in middle of line
    markshannon committed Jun 10, 2021
  2. bpo-44337: Port LOAD_ATTR to PEP 659 adaptive interpreter (GH-26595)

    * Specialize LOAD_ATTR with  LOAD_ATTR_SLOT and LOAD_ATTR_SPLIT_KEYS
    
    * Move dict-common.h to internal/pycore_dict.h
    
    * Add LOAD_ATTR_WITH_HINT specialized opcode.
    
    * Quicken in function if loopy
    
    * Specialize LOAD_ATTR for module attributes.
    
    * Add specialization stats
    markshannon committed Jun 10, 2021

Commits on Jun 9, 2021

  1. bpo-40468: Split IDLE settings General tab (GH-26621)

    Replace it with Windows tab for Shell and Editor options
    and Shell/Ed for options exclusive to one of them.
    
    Create room for more options and make dialog shorter,
    to better fit small windows.
    terryjreedy committed Jun 9, 2021
  2. bpo-43693: Do not check co_cell2arg if a non-cell offset. (gh-26626)

    This is the same fix as for PyFrame_LocalsToFast() in gh-26609, but applied to PyFrame_FastToLocalsWithError(). (It should have been in that PR.)
    
    https://bugs.python.org/issue43693
    ericsnowcurrently committed Jun 9, 2021
  3. bpo-44242: [Enum] remove missing bits test from Flag creation (GH-26586)

    Move the check for missing named flags in flag aliases from Flag creation
    to a new *verify* decorator.
    ethanfurman committed Jun 9, 2021

Commits on Jun 8, 2021

  1. bpo-43833: Emit warnings for numeric literals followed by keyword (GH…

    …-25466)
    
    Emit a deprecation warning if the numeric literal is immediately followed by
    one of keywords: and, else, for, if, in, is, or. Raise a syntax error with
    more informative message if it is immediately followed by other keyword or
    identifier.
    
    Automerge-Triggered-By: GH:pablogsal
    serhiy-storchaka committed Jun 8, 2021
  2. bpo-43693: Un-revert commit f3fa63e. (#26609)

    This was reverted in GH-26596 (commit 6d518bb) due to some bad memory accesses.
    
    * Add the MAKE_CELL opcode. (gh-26396)
    
    The memory accesses have been fixed.
    
    https://bugs.python.org/issue43693
    ericsnowcurrently committed Jun 8, 2021
  3. bpo-40468: Move IDLE helplist settings to extensions page of dialog. (G…

    …H-26593)
    
    These are the settings that extend the help menu.  Moving them shortens the dialog and will help with it being too tall for small screens.
    terryjreedy committed Jun 8, 2021
  4. bpo-43795: Note Stable ABI PEP in What's New (GH-26479)

    Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
    encukou and Fidget-Spinner committed Jun 8, 2021
  5. bpo-44329: Refactor sqlite3 statement creation (GH-26566)

    Call SQLite API's first, and return early in case of error. At the end,
    allocate the object and initialise members. We now avoid unneeded
    alloc/dealloc's in case the statement creation fails.
    erlend-aasland committed Jun 8, 2021
  6. Revert "bpo-43693: Add the MAKE_CELL opcode and interleave fast local…

    …s offsets. (gh-26396)" (GH-26597)
    
    This reverts commit 631f993.
    pablogsal committed Jun 8, 2021
  7. bpo-44348: Revert "bpo-39573: Py_TYPE becomes a static inline function (

    GH-26493)" (GH-26596)
    
    This reverts commit f3fa63e as is
    causing crashes in some Windows tests in the buildbots.
    pablogsal committed Jun 8, 2021
  8. Use from imports (GH-26594)

    from imports
    machinexa2 committed Jun 8, 2021
  9. bpo-42238: Doc CI: Disable suspicious checks. (GH-26575)

    They are slow and raise too many false positive, I'm in the slow
    process to try to change this.
    JulienPalard committed Jun 8, 2021

Commits on Jun 7, 2021

  1. bpo-43693: Silence some compiler warnings. (gh-26588)

    The plan is to eventually make PyCodeObject opaque in the public C-API, with the full struct moved to Include/internal/pycore_code.h. _PyLocalsPlusKinds and _PyLocalsPlusKind started off there but were needed on PyCodeObject, hence the duplication. This led to warnings with some compilers. (Apparently it does not trigger a warning on my install of GCC.)
    
    This change eliminates the superfluous typedef.
    
    https://bugs.python.org/issue43693
    ericsnowcurrently committed Jun 7, 2021
  2. bpo-43693: Add the MAKE_CELL opcode and interleave fast locals offset…

    …s. (gh-26396)
    
    This moves logic out of the frame initialization code and into the compiler and eval loop.  Doing so simplifies the runtime code and allows us to optimize it better.
    
    https://bugs.python.org/issue43693
    ericsnowcurrently committed Jun 7, 2021
  3. Use absolute imports in IDLE tests (GH-26581)

    Relative imports do not work when running test_x as main.
    terryjreedy committed Jun 7, 2021
  4. bpo-43693: Un-revert commits 2c1e258 and b2bf2bc. (gh-26577)

    These were reverted in gh-26530 (commit 17c4edc) due to refleaks.
    
    * 2c1e258 - Compute deref offsets in compiler (gh-25152)
    * b2bf2bc - Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388)
    
    This change fixes the refleaks.
    
    https://bugs.python.org/issue43693
    ericsnowcurrently committed Jun 7, 2021
  5. bpo-44187: Quickening infrastructure (GH-26264)

    * Add co_firstinstr field to code object.
    
    * Implement barebones quickening.
    
    * Use non-quickened bytecode when tracing.
    
    * Add NEWS item
    
    * Add new file to Windows build.
    
    * Don't specialize instructions with EXTENDED_ARG.
    markshannon committed Jun 7, 2021
  6. bpo-44258: support PEP 515 for Fraction's initialization from string (G…

    …H-26422)
    
    * bpo-44258: support PEP 515 for Fraction's initialization from string
    
    * regexps's version
    
    * A different regexps version, which doesn't suffer from catastrophic backtracking
    
    * revert denom -> den
    
    * strip "_" from the decimal str, add few tests
    
    * drop redundant tests
    
    * Add versionchanged & whatsnew entry
    
    * Amend Fraction constructor docs
    
    * Change .. versionchanged:...
    skirpichev committed Jun 7, 2021
  7. bpo-37449: ensurepip uses importlib.resources.files() traversable APIs (

    #22659)
    
    * `ensurepip` now uses `importlib.resources.files()` traversable APIs
    
    * Update Lib/ensurepip/__init__.py
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    
    * Update Misc/NEWS.d/next/Library/2020-10-11-20-23-48.bpo-37449.f-t3V6.rst
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    wimglenn and jaraco committed Jun 7, 2021
Older