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

[Python-Dev] @decoration of classes

[Python-Dev] @decoration of classes [Python-Dev] @decoration of classesJosiah Carlson jcarlson at uci.edu
Sat Mar 26 21:36:08 CET 2005
Eric Nieuwland <eric.nieuwland at xs4all.nl> wrote:
> 
> Given the ideas so far, would it possible to:
> 
> def meta(cls):
> 	...
> 
> @meta
> class X(...):
> 	...

It is not implemented in Python 2.4.  From what I understand, making it
happen in Python 2.5 would not be terribly difficult.  The question is
about a "compelling use case".  Is there a use where this syntax is
significantly better, easier, etc., than an equivalent metaclass?  Would
people use the above syntax if it were available?

What would you use the above syntax to do?


 - Josiah

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