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


Groups > comp.lang.python > #32073 > unrolled thread

Re: while expression feature proposal

Started byChris Angelico <rosuav@gmail.com>
First post2012-10-25 09:40 +1100
Last post2012-10-25 09:40 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: while expression feature proposal Chris Angelico <rosuav@gmail.com> - 2012-10-25 09:40 +1100

#32073 — Re: while expression feature proposal

FromChris Angelico <rosuav@gmail.com>
Date2012-10-25 09:40 +1100
SubjectRe: while expression feature proposal
Message-ID<mailman.2801.1351118402.27098.python-list@python.org>
On Thu, Oct 25, 2012 at 9:26 AM, Cameron Simpson <cs@zip.com.au> wrote:
> If I could write this as:
>
>   if re_FUNKYPATTERN.match(test_string) as m:
>     do stuff with the results of the match, using "m"

Then you'd be right there with C-like languages where assignment is an
expression :)

while (tok = strtok(blah,blah)) ... do something with tok ...

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web