[Python-Dev] Crude Python->Parrot compiler
Guido van Rossum
guido@python.org
Wed, 26 Sep 2001 16:47:03 -0400
Andrew, which version of the compiler package do you use? When I try
to use the version that Jeremy just checked into the standard library,
I get a traceback:
$ ~/python/src/linux/python parrot-gen.py -S euclid.py
Traceback (most recent call last):
File "parrot-gen.py", line 405, in ?
main()
File "parrot-gen.py", line 395, in main
generate_assembly(filename, asm_filename)
File "parrot-gen.py", line 355, in generate_assembly
lnf = walk(ast, LocalNameFinder(), 0)
File "/home/guido/python/src/Lib/compiler/visitor.py", line 114, in walk
walker.preorder(tree, visitor)
AttributeError: 'int' object has no attribute 'preorder'
$
--Guido van Rossum (home page: http://www.python.org/~guido/)