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


Groups > comp.lang.python > #57978

Re: stacked decorators and consolidating

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: stacked decorators and consolidating
Date Wed, 30 Oct 2013 11:46:38 +1300
Lines 10
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>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net brxwHV6MsVBnv3eqXeriBg5OtOcyEeAVUewjzWKuWxuB+V9qRH
Cancel-Lock sha1:ozZSNtJE7+PXOrxiHIQ+NM2l5SU=
User-Agent Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language en-us, en
In-Reply-To <mailman.1769.1383069148.18130.python-list@python.org>
Xref csiph.com comp.lang.python:57978

Show key headers only | 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