[Python-ideas] Default decorator?
Guido van Rossum
guido at python.org
Thu Jan 17 02:18:34 CET 2008
On Jan 16, 2008 5:13 PM, Aaron Brady <castironpi at comcast.net> wrote:
> __decor__= functools.partial( "when?" )
> __lambdadec__= functools.partial( "say when." )
> __classdec__= functools.partial( "now." )
> __classmethoddec__= functools.partial( "ooh. too much." )
>
> or:
>
> from functools import partial
> __decor__= funcutils.ModuleDec( partial( "where?" ), lambdadec= partial(
> "there." ), classmethdec= partial( "never." ) )
Aaron, if you aren't capable of expression your thoughts in English,
you might as well not bother to post.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-ideas
mailing list