You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python branch rule counts the .match( method call as a match statement #8034
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: lowUI tweaks, documentation, and minor optimizationsscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Python's branch rule matches the method call.match( as if it were the match statement (structural pattern
matching). Every re.match(...), pattern.match(...) or self.x.match(...) counts as a branch.
Found while rendering the docs/media explainer. In gitgalaxy/core/aperture.py:_has_generator_banner, the engine's
6 struct_branch hits include self.machine_gen_pattern.match(text).
for raw in head_lines: -> for
if self._machine_gen_anywhere.search(raw) or ...: -> if, or
if text and self.machine_gen_pattern.match(text): -> if, and, match <- method call, not a branch
Ask
Count match only as the statement: at line start (after indentation), followed by a subject and :. Never after .. Sweep the other languages' branch rules for the same method-name collision (e.g. switch, when, case used
as identifiers or methods). Add positive and negative rule tests.
Same class as #8010 (a rule counting something it should not).
Claimed by promoter-bot host melek, lease renewed 2026-11-08T15:04Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: lowUI tweaks, documentation, and minor optimizationsscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
squid-protocol commentedon Nov 8, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-11-08T15:04Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.DOOM-rosetta: re-bless 8 ports whose Python helper scripts lose .matc…
Python/Kotlin branch: match/case/when count only as statements, not m…