Printing literal text of an argument

Paul McGuire ptmcg at austin.rr.com
Sat Aug 13 09:22:25 EDT 2005


Rex -

If what you are looking for is a monitor of calls to a certain
function, check out this decorator example from the Python Wiki:

http://wiki.python.org/moin/PythonDecoratorLibrary?highlight=%28Decorator%29#head-d4ce77c6d6e75aad25baf982f6fec0ff4b3653f4

This will allow you to very quickly turn on/off debugging for a given
routine, with no changes required in the calling code.

-- Paul




More information about the Python-list mailing list