News for hackers. Stuff that matters.
Re:Why Python is Important for You by irahul on Sunday February 12, 2012 @08:01AM (#3581707)
Even if it were possible, I would stick with

    @memoize
    def fib:
        pass
fib = memoize(function ...) has unnecessary nesting, and @memoize is cleaner IMO.

I am curious - do you find @memoize confusing? Personally for me and anyone I have talked to, @memoize is vanilla - the confusing part is the decorator itself, especially one that takes arguments; that coupled with the fact that classes(which override __call__) and functions are both used as decorators.

Re:Why Python is Important for You by maxerickson on Sunday February 12, 2012 @08:09AM (#3581724)
No, I don't find it confusing. But I read craigyk as mostly talking about the special decorator syntax, not function decoration in general.