[Python-3000] mixin class decorator

Josiah Carlson jcarlson at uci.edu
Sun May 13 19:17:06 CEST 2007

"tomer filiba" <tomerfiliba at gmail.com> wrote:
> with the new class decorators of py3k, new use cases emerge.
> for example, now it is easy to have real mixin classes or even
> mixin modules, a la ruby.
> does it seem useful? should it be included in some stdlib?
> or at least mentioned as a use case for class decorators in PEP 3129?
> (not intended for 3.0a1)

There are many use-cases for class decorators.  Since the PEP has
already been accepted, including this is unnecessary (for acceptance or
rejection purposes).

About the only thing that I think would be nice is if we could get class
decorators in 2.6 as well (a future import would work for me).  (which
would also open up the gates for 3rd party or stdlib-based type
annotation library like @implements(interface.foo) ).

 - Josiah

More information about the Python-3000 mailing list