Function decorators

Diez B. Roggisch deets at nospam.web.de
Thu Sep 4 11:55:49 EDT 2008


Aigars Aigars schrieb:
> Good day all,
> 
> I am learning Python and came up to decorators.
> 
> The question is: Why does function FoodList return value None?
> 
> The code in attachment.

Because the __call__ in Logger doesn't return the value of self.func.

Diez



More information about the Python-list mailing list