Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57978

Re: stacked decorators and consolidating

From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: stacked decorators and consolidating
Date 2013-10-30 11:46 +1300
Message-ID <bdas6gFl5t8U1@mid.individual.net> (permalink)
References <20131029115427.537e1bcd@bigbox.christie.dr> <526FF395.9040306@mrabarnett.plus.com> <mailman.1769.1383069148.18130.python-list@python.org>

Show all headers | View raw


Tim Chase wrote:
> I'd have figured they would be associative, making the result end up
> the same either way, but apparently not.

They're not associative because function application
is not associative: f(g(x)) is not the same thing as
f(g)(x).

-- 
Greg

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: stacked decorators and consolidating Tim Chase <python.list@tim.thechases.com> - 2013-10-29 12:54 -0500
  Re: stacked decorators and consolidating Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-10-30 11:46 +1300

csiph-web