[plugin] dirstate experiments
Andrew Bennetts
andrew at canonical.com
Fri Jun 16 04:39:52 BST 2006
On Fri, Jun 16, 2006 at 02:49:30AM +1000, Robert Collins wrote:
[...]
>
> just randomly, you might try:
>
> x, y, z = (x1, x2), (y1, y2, y3), (z1, z2, z3) = list[1:9]
>
> No idea if it will play...
No luck here. Python sees an attempt to unpack a sequence of eight items into a
sequence of three items, so it throws a ValueError.
The closest you could do to what you wrote would be:
x1, x2, y1, y2, y3, z1, z2, z3 = list[1:9]
x, y, z = (x1, x2), (y1, y2, y3), (z1, z2, z3)
-Andrew.
More information about the bazaar
mailing list