Hi, I would like to compile an AST to bytecode, so I can eval it later. I tried using parse.compileast, but it fails:
>>> import compiler, parser
>>> ast = compiler.parse("42")
>>> parser.compileast(ast)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: compilest() argument 1 must be parser.st, not instance
Any hints?
TIA,
--Rob
--
http://mail.python.org/mailman/listinfo/python-list
