Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32073
| References | <50886398.5050301@tim.thechases.com> <20121024222656.GA32708@cskk.homeip.net> |
|---|---|
| Date | 2012-10-25 09:40 +1100 |
| Subject | Re: while expression feature proposal |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2801.1351118402.27098.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: while expression feature proposal Chris Angelico <rosuav@gmail.com> - 2012-10-25 09:40 +1100
csiph-web