On Fri, Mar 28, 2014 at 12:44 PM, Dave Angel <da...@davea.name> wrote:
>> if (array m = Regexp.split2(some_pattern, some_string))
>>     do_something(m);
>>
>
> I don't know for certain about if, but you can declare (in C++) a
>  new variable in for, which is a superset of if. Scope ends when
>  the for does.

Yeah, but only a for, AFAIK. Not an if or a while.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to