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

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

[Python-Dev] Re: method decorators (PEP 318) [Python-Dev] Re: method decorators (PEP 318)Mike Rovner mike at nospam.com
Fri Mar 26 15:57:26 EST 2004
Given that attributes are part of function object dictionary,
and defined at function definition time like docstring,
why not:

def func(atr):
  {author="Guido", deprecated=True}
  '''doc'''
  pass

Presumably {attributes} will be like "doc": only allowed immediately after
def (interchangebly with "doc") and do no harm in other places.

Regards,
Mike




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