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