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?


-tomer

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to