Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] On decorators implementation

Guido van Rossumgvanrossum 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 isa 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-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp