24 Feb
2013
24 Feb
'13
7:46 p.m.
On 24/02/13 23:59, Chris Angelico wrote:
On Sun, Feb 24, 2013 at 10:25 PM, Larry Hastings
wrote: Or
command, subcommand = next(iterargs), next(iterargs)
Err.... is there a language guarantee of the order of evaluation in a tuple, or is this just a "CPython happens to evaluate independent expressions left-to-right"? This is totally broken if the next() calls could be done in either order.
It's a language guarantee. http://docs.python.org/2/reference/expressions.html#evaluation-order -- Steven