[Tutor] introspecting an object for method's name?

Kent Johnson kent37 at tds.net
Mon Oct 19 15:17:13 CEST 2009

On Mon, Oct 19, 2009 at 8:40 AM, Tim Golden <mail at timgolden.me.uk> wrote:

> Or just use the built-in logging module which lets you specify
> the containing function name as one of its formatting keywords:
> http://docs.python.org/library/logging.html#formatter-objects

Sweet! And much better than rolling your own logger.


More information about the Tutor mailing list