> 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... -- http://mail.python.org/mailman/listinfo/python-list