python-ast 1.0.2

A library for compiling Python to Rust
Documentation
1
2
3
4
5
6
7
# Test case: Simple main() call pattern - should NOT rename main function
def main():
    print("This is the main function")
    return "main_result"

if __name__ == "__main__":
    main()  # Only a call to main() - should use main() directly as Rust entry point