I'm not sure what the best way to do this is, other then that it would mean asking the interp to explain it in a format we understand ;).
In the (c)python library reference, I see an inspect module that sounds like it should be useful, but it doesn't work on my test case here: >>> def foo(x, y): ... print(x+y) ... >>> inspect.getsource(foo) (throws IOError: could not get source code) Perhaps someone else has more experience on the matter. -- TerryP. -- http://mail.python.org/mailman/listinfo/python-list