python-ast 1.0.2

A library for compiling Python to Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# Test case 4: Only __name__ == "__main__" block, no user main function
def helper1():
    print("Helper 1")

def helper2():
    print("Helper 2")

if __name__ == "__main__":
    print("Starting execution")
    helper1()
    helper2()
    print("Finished execution")