see the topic: adding new functionality to a function non-intrusively! and decorators if you want to add functionality to a function!
-- http://mail.python.org/mailman/listinfo/python-list
see the topic: adding new functionality to a function non-intrusively! and decorators if you want to add functionality to a function!
-- http://mail.python.org/mailman/listinfo/python-list