On Sunday 13 May 2007, Josiah Carlson wrote:
> 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).
Since class decorators don't introduce a new keyword, there'd be no need for a
future import. Something that'
"tomer filiba" <[EMAIL PROTECTED]> 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.
[snip]
> does it seem useful? should it be included in some stdlib?
> or at least mentioned as a
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.
unlike inheritance, this mixin mechanism simply merges the
namespace of the class or module into the namespace of the
decorated class. it does not a