On Nov 27, 2:54 pm, lkcl <[EMAIL PROTECTED]> wrote: > On Nov 27, 7:43 pm, [EMAIL PROTECTED] wrote: > > > lkcl> Very simple question: how do you apply a decorator to an entire > > lkcl> module? > > > Function-by-function or class-by-class. There is no decorator support for > > modules. > > awWww! i'm going to quietly throw my toys out of my pram. > > ... but seriously - doesn't that strike people as... a slightly odd > omission?
Not really; functions and classes are explicitly defined by "def .." and "class ...", modules are not. You can always pass the module to the decorator explicitly: import mymod mymod = decorator(mymod) George -- http://mail.python.org/mailman/listinfo/python-list