Functions and Blocks
Function Syntax
Tython uses explicit func declarations:
Parameters
Function parameters are local bindings.
They follow the same naming and shadowing rules as other local bindings.
Block Syntax
Tython uses explicit braces for blocks:
Every block creates a child lexical scope.
Empty blocks are rejected; use pass for intentional no-op blocks:
Branching
Canonical branching syntax:
else if is written exactly as else if in source and lowered to elif.
Loops and Loop Control
while is the only loop form in v1. for is not supported.
break and continue are valid only inside while bodies.
Readability Principle
Tython favors explicit structure over compact tricks.
If a block boundary or binding lifetime is unclear, rewrite it to be explicit.