> The real question is, then, is there a way I can print the code of a > function as a string? Something like.... > > 'def myFunction: print "hello"'
There is a module for doing black magic like that. I think it may be the one with the disassembler in it? Curious as to why you would ever want to though? It may be there's another solution to whatever the problem is. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor