A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-March/043593.html below:

[Python-Dev] Re: method decorators (PEP 318)

[Python-Dev] Re: method decorators (PEP 318) [Python-Dev] Re: method decorators (PEP 318)Robert Mollitor mollitor at earthlink.net
Sat Mar 27 21:03:03 EST 2004
On Saturday, March 27, 2004, at 06:30 PM, Paul Prescod wrote:
> Anyhow, I do not believe that the two features are as unrelated as you 
> think.
>
> First: we do not want to introduce a new feature that will ENCOURAGE 
> abuse. Better to introduce two features and head that off at the pass.

I agree with this.


> Second: I see use cases like this:
>
> def foo [spark_callback] (self):
> 	@spark_rule = "DOC := HEAD BODY FOOT"
> 	...
>
> def foo [publish_to_web](self):
> 	@url = "/cgi-bin/directory/directory"

Excellent example.  Annotations would probably be set before 
transformers are invoked.


> Otherwise you get into a lot of this stuff:
>
> def foo[publish_to_web("http://directory/directory")](self):

It would be nice if transformer decorations were never allowed 
"arguments".  It would keep that list as short
and as tidy as possible.


Robert Mollitor


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