__str__ vs. __repr__

M.-A. Lemburg mal at lemburg.com
Fri Nov 12 14:02:08 EST 1999


skaller wrote:
> ...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
modifying ?).

BTW, all your software links are broken...

Thanks,
-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                    49 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/




More information about the Python-list mailing list