Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python/cpython
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: eendebakpt/cpython
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: to_bool_generic
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 18 files changed
  • 3 contributors

Commits on Mar 25, 2026

  1. Add TO_BOOL_GENERIC specialization and _TO_BOOL_DICT JIT optimization

    - Add TO_BOOL_GENERIC: a catch-all specialization for types not covered
      by existing TO_BOOL variants (dict, tuple, float, set, bytes, frozenset,
      etc. and heap types with __bool__/__len__). Records type info for the JIT.
    
    - Add _TO_BOOL_DICT: a tier2-only uop that checks dict.ma_used directly
      instead of calling PyObject_IsTrue(). The JIT optimizer replaces _TO_BOOL
      with _TO_BOOL_DICT when the type is known to be dict or frozendict.
    
    - Fix _GUARD_TYPE_VERSION optimizer handler to resolve types from recorded
      type info even when the type version cache has a collision. This enables
      the optimizer to eliminate redundant type guards (e.g. _GUARD_NOS_LIST)
      in more cases.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    eendebakpt and claude committed Mar 25, 2026
    Configuration menu
    Copy the full SHA
    395bdfc View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2026

  1. Configuration menu
    Copy the full SHA
    8e62e9f View commit details
    Browse the repository at this point in the history
  2. refactor

    eendebakpt committed Apr 4, 2026
    Configuration menu
    Copy the full SHA
    d52937f View commit details
    Browse the repository at this point in the history
  3. refactor

    eendebakpt committed Apr 4, 2026
    Configuration menu
    Copy the full SHA
    abe868f View commit details
    Browse the repository at this point in the history
  4. refactor

    eendebakpt committed Apr 4, 2026
    Configuration menu
    Copy the full SHA
    c896087 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2026

  1. Configuration menu
    Copy the full SHA
    f616e12 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2026

  1. Configuration menu
    Copy the full SHA
    0d00d54 View commit details
    Browse the repository at this point in the history
  2. format

    eendebakpt committed Apr 7, 2026
    Configuration menu
    Copy the full SHA
    2c645ee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39f9e66 View commit details
    Browse the repository at this point in the history
Loading