[Python-Dev] On decorators implementation

Guido van Rossum gvanrossum at gmail.com
Mon Aug 22 19:43:24 CEST 2005


> Maybe it's possible to let the decorator know the method class even if
> the class is still undefined.(Just like recursive functions?)
> This would allow decorators to call super with the right class also.
> @callSuper decoration is something I really miss.

You're thinking about it all wrong.

Remember that decorators can also be used to declare that something is
a static method or class method etc.

Try to learn Python, not to write some other language using Python syntax.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list