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

[Python-Dev] PEP 318, a different approach

[Python-Dev] PEP 318, a different approach [Python-Dev] PEP 318, a different approachRussell E. Owen rowen at cesmail.net
Fri Apr 16 19:52:43 EDT 2004
I had a strange idea for decorator syntax.

def.classmethod func(cls,...):

Multiple decorators are going to need the usual [] thing (or the current 
clumsy notation), but the strange thought is allowing

def.iter

so one could be more explicit about defining iterator functions w/out 
adding a keyword.

Sorry to beat that dead horse. Back to the real notation.

-- Russell

P.S. one could imagine allowing these, as well,, but I can't imagine 
users typing them:
def.func
def.instancemethod


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