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: pattern_match_class_v0
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Feb 26, 2026

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

Commits on Jul 29, 2026

  1. Fix zero-pattern fast path: MATCH_CLASS pushes a tuple or None, not a…

    … bool
    
    POP_JUMP_IF_FALSE asserts an exact bool and only jumps on Py_False, so
    the fail branch was never taken: `case C():` matched any subject in
    release builds (and asserted in debug builds). Jump on None instead.
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    eendebakpt and claude committed Jul 29, 2026
    Configuration menu
    Copy the full SHA
    5499c98 View commit details
    Browse the repository at this point in the history
Loading