[Python-ideas] 'where' statement in Python? (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Thu Jul 22 14:54:04 CEST 2010


On Thu, Jul 22, 2010 at 1:30 PM, Chris Rebert <pyideas at rebertia.com> wrote:

I believe Nick meant returns/yields within the given suite (he just phrased it awkwardly), e.g.

a = b given:  b = 42  return c  # WTF

Yep, that's what I meant by the top level code in the given clause (i.e. in the same sense as I would refer to the top level code in a function body). It didn't occur to me that phrasing could be legitimately confused with the header line of the clause until I read Terry's message.

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list