accessing a classes code

bruno de chez modulix en face bruno at modulix.org
Wed Apr 19 16:54:13 EDT 2006


> It turns out that what I want to do can be done using the inspect
> module which has methods for getsourcecode among other things.

I never said that what you wanted to do was impossible (nor even
difficult, and FWIW, there are simpler alternatives than using inspect
- using a templating system like empy comes to mind...). I only suggest
that there are possibly far better solutions, that you seem to dismiss
for some unknown reason...




More information about the Python-list mailing list