Re: [Python-Dev] fuzzy logic?

1) Is there anything is the standard library that does the equivalent of import symbol,token def decode_ast(ast): if token.ISTERMINAL(ast[0]): return (token.tok_name[ast[0]], ast[1]) else: return (symbol.sym_name[ast[0]],)+tuple(map(decode_ast,ast[1:])) so that, eg:
? Should there be? (Especially if it was a bit better written). ... and Greg's just said everything else I wanted to! Cheers, M. -- please realize that the Common Lisp community is more than 40 years old. collectively, the community has already been where every clueless newbie will be going for the next three years. so relax, please. -- Erik Naggum, comp.lang.lisp

Michael Hudson writes:
1) Is there anything is the standard library that does the equivalent of
No, but I have a chunk of code that does in a different way. Where in the library do you think it belongs? The compiler package sounds like the best place, but that's not installed by default. (Jeremy, is that likely to change soon?) -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Digital Creations

Michael Hudson writes:
1) Is there anything is the standard library that does the equivalent of
No, but I have a chunk of code that does in a different way. Where in the library do you think it belongs? The compiler package sounds like the best place, but that's not installed by default. (Jeremy, is that likely to change soon?) -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Digital Creations
participants (2)
-
Fred L. Drake, Jr.
-
Michael Hudson