symbolic python

Benjamin Tai bt98 at doc.ic.ac.uk
Sat May 25 11:31:24 EDT 2002


Hi,

Can Python behave as a symbolic language, like... Prolog?

For example, if I define a function:

def fun():
    #function_body

Is there any chance to print out the code inside the function_body?

When I receive a method object, would it be possible to get into the
function_body, and dynamically change the method's behaviour?



Thanks

Ben




More information about the Python-list mailing list