How does python build its AST

MonkeeSage MonkeeSage at gmail.com
Fri Dec 7 09:23:22 EST 2007


A quick question about how python parses a file into compiled
bytecode. Does it parse the whole file into AST first and then compile
the AST, or does it build and compile the AST on the fly as it reads
expressions? (If the former case, why can't functions be called before
their definitions?)

Thanks,
Jordan



More information about the Python-list mailing list