Decorator keyword

Anthony Baxter anthonybaxter at gmail.com
Thu Aug 5 21:51:18 EDT 2004


On 5 Aug 2004 17:17:39 -0700, Steven Bethard <steven.bethard at gmail.com> wrote:
> I was just going to let this go because I thought it had been shut
> down, but as it seems to have been reopened, I'd love to see something
> like:
> 
> with classmethod
> with returns(int)
> def func(*args, **kwds):
>     return 1

"with" is a non-starter - there's already other plans to use with for other
things, at some distant point. Also, if we're to have a new keyword, it
should be _much_ more obvious than 'with'.



More information about the Python-list mailing list