[Python-ideas] iterable.__unpack__ method
Chris Angelico
rosuav at gmail.com
Sun Feb 24 13:59:20 CET 2013
On Sun, Feb 24, 2013 at 10:25 PM, Larry Hastings <larry at hastings.org> 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.
ChrisA
More information about the Python-ideas
mailing list