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
13
14
15
import sys
from os import execv
from os.path import dirname
import subprocess

print("Testing module structure:")
print("sys.executable:", sys.executable)

# Test nested module access
path = dirname("/home/user/file.txt")
print("dirname result:", path)

# Test subprocess
result = subprocess.run(["echo", "hello"], None)
print("subprocess returncode:", result.returncode)