__metaclass__ and __author__ are already decorators

Leif K-Brooks eurleif at ecritters.biz
Sun Aug 22 02:56:30 CEST 2004


Paul Morrow wrote:
> So when we define an __xxx__ attribute inside of a function, we are 
> trying to make a statement about the function --- we are not trying to 
> create a local variable.  Therefore the Python system shouldn't create a 
> local variable in this case; it should create a function variable 
> instead (IMO).

How do you think a newbie will react to magic behavior like that from 
the assignment operator based entirely on the name being assigned to?



More information about the Python-list mailing list