while expression feature proposal
Chris Angelico
rosuav at gmail.com
Wed Oct 24 18:40:00 EDT 2012
On Thu, Oct 25, 2012 at 9:26 AM, Cameron Simpson <cs at 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
More information about the Python-list
mailing list