modifying def behaviour

Craig Zoretich czoretich at octigabay.com
Wed Aug 6 19:08:27 EDT 2003


Hi,

Is it possible to change how the "def" builtin command works? 
Specifically I want  to modify def to write to a log file when a
function executes (for instance the name of the function, when it was
executed - that sort of thing).  I want to avoid having to put some
code in each and every function I write to do this logging for me.

Thanks,
Craig




More information about the Python-list mailing list