One function
_get_bindings_for_named_expr in bwhmather/ssort
The author described this change as “Fix support for recursive walrus bindings”. It counts as a record because the check below fails on the code as it stood at 89b8f33d1 and passes on 52bd7de17, with nothing else changed between the two runs.
Projectbwhmather/ssort
Fix saved2021-08-08
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a docstring
..code:: python NamedExpr(expr target, expr value)
The change
| 4 | 4 | ||
| 5 | 5 | NamedExpr(expr target, expr value) | |
| 6 | 6 | """ | |
| 7 | - | yield from _flatten_target(node.target) | |
| 8 | 7 | yield from get_bindings(node.value) | |
| 8 | + | yield from _flatten_target(node.target) |
The check that tells the two apart
fail→pass·tests/test_bindings.py::test_named_expr_bindings_recursive
Check file tests/test_bindings.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it89b8f33d119b6fb93b03d64330237349ad2e3ab6
Broken version dated2021-08-08
Modulessort._bindings
Units changed_get_bindings_for_named_expr
Fingerprintbf1f915fc37d5771
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in bwhmather/ssort
- 2026-08-03Fix handling of nested classes
- 2024-01-18Fix detection of self argument name when positional-only
- 2022-07-22Fix lambda requirements with walrus operator
- 2021-04-06_get_bindings_for_import
- 2021-04-06_get_bindings_for_with
- 2021-03-29Fix dependencies being return for bindings in comprehensions