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

[Python-Dev] Questions about '@' in pep 318

[Python-Dev] Questions about '@' in pep 318 [Python-Dev] Questions about '@' in pep 318Roman Suzi rnd at onego.ru
Fri Aug 6 13:44:54 CEST 2004
Hello,

I think @ before def are unacceptable because they aren't too Pythonic
and thus break style and aestetics of Python. If we absolutely need
those decorators, I propose to use existing construct which has some
resemblance with other places of Python:

def func(x, y, z) % decorator:
  ...


and

def func(x, y, z) % (decorator1, decorator2, ...):
  ...


this has a meaning of "applying" decorators to the function (method).
And it has minimal impact on readability.


Sincerely yours, Roman A.Suzi
-- 
 - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -

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