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-August/047052.html below:

[Python-Dev] Call for defense of @decorators

[Python-Dev] Call for defense of @decorators [Python-Dev] Call for defense of @decoratorsPhillip J. Eby pje at telecommunity.com
Fri Aug 6 06:12:22 CEST 2004
At 02:24 PM 8/6/04 +1200, Greg Ewing wrote:
>Ronald Oussoren <ronaldoussoren at mac.com>:
>
> > And how would that solve this:
> > <http://www.eby-sarna.com/pipermail/peak/2004-July/001598.html>
>
>FWIW, in decorator-plus-function-attributes style, this
>would be
>
>   def do_something(x,y) [generic]:
>     @when = "x in int and y in str"
>     # body here will be executed when 'x'
>     # is an integer and 'y' is a string

Which reduces composability of decorators by introducting the possibility 
of attribute collisions, while simultaneously reducing clarity by 
separating decorators from their arguments.

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