Decorators not worth the effort

alex23 wuwei23 at gmail.com
Thu Sep 13 23:25:19 EDT 2012


On Sep 14, 12:12 pm, Cameron Simpson <c... at zip.com.au> wrote:
> On 13Sep2012 18:58, alex23 <wuwe... at gmail.com> wrote:
> | On Sep 14, 3:54 am, Jean-Michel Pichavant <jeanmic... at sequans.com>| wrote:
> | > I don't like decorators, I think they're not worth the mental effort.
> |
> | Because passing a function to a function is a huge cognitive burden?
>
> It is for me when I'm _writing_ the decorator:-) But if I get it right
> and name it well I find it dramaticly _decreases_ the cognitive burden
> of the code using the decorator...

Okay, I will concede that point :)



More information about the Python-list mailing list