In <[EMAIL PROTECTED]>, gangesmaster
wrote:

> just something i thought looked nice and wanted to share with the rest
> of you:
> 
>>>> class x(object):
> ...     def __metaclass__(name, bases, dict):
> ...             print "hello"
> ...             return type(name, bases, dict)
> ...
> hello
>>>>
> 
> instead of defining a separate metaclass function/class, you can do
> it inline. isn't that cool?

But why use a metaclass?  If the meta class is only applied to *one*
class, can't you do at class level whatever the metaclass is doing!?

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to