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

[Python-Dev] Decorators are function/method subclassing technique?

[Python-Dev] Decorators are function/method subclassing technique? [Python-Dev] Decorators are function/method subclassing technique?Roman Suzi rnd at onego.ru
Sun Aug 15 11:00:32 CEST 2004
After considering the docstring problem of decorators, it occured to me
that decorators could be seen as an inheritance mechanism of functions.

class docsafe(function):
   ...

@ docsafe
def f(x, y, z):
   """ To be saved """
   ...


print f
<__main__.docsafe object at 0x401e074c>


Sincerely yours, Roman Suzi
-- 
rnd at onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
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