A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-April/043927.html below:

[Python-Dev] Re: PEP 318: Decorators last before colon

[Python-Dev] Re: PEP 318: Decorators last before colon [Python-Dev] Re: PEP 318: Decorators last before colonPhillip J. Eby pje at telecommunity.com
Thu Apr 1 18:21:47 EST 2004
At 06:02 PM 4/1/04 -0500, Bob Ippolito wrote:

>No, that's a misunderstanding.. it was by coincidence alone that the last 
>example I gave had two callbacks with an identical type signature.  Using 
>a "with" block for decorators is as nonsensical as this:
>
>with args(x):
>
>     def foo:
>         pass
>
>     def bar:
>         pass

I'm not sure I'd go that far.  For 'classmethod' it can actually be 
attractive to group a bunch of them together.  On the other hand, that's 
the only use case that comes to mind for grouping a bunch of functions 
under the same decorator list.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4