Jul 2, 2011

Python Decorators @

Decorators I: Introduction to Python Decorators
Python Decorators II: Decorator Arguments
Python Decorators III: A Decorator-Based Build System
by Bruce Eckel

看第一第二部分,第三部分有兴趣才看看。

decorator 带不带参数,对它的写法影响很大。

The @ indicates the application of the decorator.

0 comments: