Map None -> Indeterminate to prevent iterating over none in non-shortcircuiting rule execution #7501

This commit is contained in:
Thomas Krijnen
2025-12-24 15:07:33 +01:00
parent 633c3bc7eb
commit 8d3c610965
2 changed files with 14 additions and 6 deletions
@@ -9,7 +9,7 @@ from codegen import indent
def reverse_compile(s):
return re.sub(
return re.sub(r'\bself\b', 'SELF', re.sub(
r"\s*\-\s*EXPRESS_ONE_BASED_INDEXING",
"",
re.sub(
@@ -22,11 +22,11 @@ def reverse_compile(s):
.replace("len(", "SIZEOF(")
.replace("assert ", "")
.replace(" is not False", "")
.replace("getattr(", "")
.replace("express_getattr(", "")
.replace("express_getitem(", ""),
)[::-1],
)[::-1],
)
))
@dataclass