__str__ vs. __repr__
mal at lemburg.com
Fri Nov 12 14:02:08 EST 1999
> ...viperi's version of repr...
> You may be wondering how this works. The answer is that Viperi does not
> use bytecode, it executes the 'Abstract Syntax Tree' directly.
> Consequently, the original code can be recovered. (without comments,
> or the original formatting, of course).
Could you point me to some resources ? Using ASTs for execution
is an interesting subject and I would like to know how you deal
with Python dynamic nature in this context (are the ASTs self
BTW, all your software links are broken...
Y2000: 49 days left
Python Pages: http://www.lemburg.com/python/
More information about the Python-list