On 5/7/07, Collin Winter <[EMAIL PROTECTED]> wrote:
[...]
> This PEP proposes class decorators, an extension to the function
> and method decorators introduced in PEP 318.
[...]
> The semantics and design goals of class decorators are the same as
> for function decorators ([#semantics]_, [#goals]_); the only
> difference is that you're decorating a class instead of a function.
> The following two snippets are semantically identical: ::
>
>   class A:
>     pass
>   A = foo(bar(A))
>
>
>   @foo
>   @bar
>   class A:
>     pass

I'm +1 on this PEP.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to