this work, 
(a, (b[2], c)) = (&#39;big&#39;, (&#39;red&#39;, &#39;dog&#39;))<br>but this not 
(a, (b[2], c)) += (&#39;big&#39; (&#39;red&#39;, &#39;dog&#39;))<br><br>paul bedaride<br><br><div class="gmail_quote">On Thu, May 29, 2008 at 6:52 AM,  &lt;<a href="mailto:allyourcode@gmail.com">allyourcode@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Indeed. Thank you, Guido.<br>
<div><div></div><div class="Wj3C7c"><br>
On 5/28/08, Guido van Rossum &lt;<a href="mailto:guido@python.org">guido@python.org</a>&gt; wrote:<br>
&gt; Apart from the missing comma after &#39;big&#39; this is already supported.<br>
&gt;<br>
&gt; The time machine strikes again!<br>
&gt;<br>
&gt; --Guido<br>
&gt;<br>
&gt; On Wed, May 28, 2008 at 6:23 PM, Daniel Wong &lt;<a href="mailto:allyourcode@gmail.com">allyourcode@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; Are there plans for introducing syntax like this:<br>
&gt;&gt;<br>
&gt;&gt; (a, (b[2], c)) = (&#39;big&#39; (&#39;red&#39;, &#39;dog&#39;))<br>
&gt;&gt;<br>
&gt;&gt; It seems quite doable, because Professor Hillfinger at UC Berkeley<br>
&gt;&gt; created pyth, a dialect of Python, which has this feature. See page 10<br>
&gt;&gt; of the spec he created for his students to implement the language:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://inst.eecs.berkeley.edu/%7Ecs164/sp08/docs/pyth.pdf" target="_blank">http://inst.eecs.berkeley.edu/~cs164/sp08/docs/pyth.pdf</a><br>
&gt;&gt;<br>
&gt;&gt; Of course, this idea could also be applied to &#39;for&#39; constructs (loops,<br>
&gt;&gt; list comprehensions, and generators) where assignments are implicit.<br>
&gt;&gt;<br>
&gt;&gt; Parallel looping (esp using zip) is a great use case for this. Here&#39;s<br>
&gt;&gt; a case that&#39;s come up more than once for me that &quot;structured&quot;<br>
&gt;&gt; assignments would solve really nicely:<br>
&gt;&gt;<br>
&gt;&gt; for n, (a, b) in enumerate(list_of_pairs): ...<br>
&gt;&gt;<br>
&gt;&gt; Currently, I must do the following instead:<br>
&gt;&gt;<br>
&gt;&gt; for n, pair in enumerate(list_of_pairs):<br>
&gt;&gt; &nbsp;a, b = pair<br>
&gt;&gt; &nbsp;...<br>
&gt;&gt;<br>
&gt;&gt; This isn&#39;t such a great solution, because there&#39;s more indirection<br>
&gt;&gt; with the introduction of an otherwise useless variable; and (less<br>
&gt;&gt; significantly) there&#39;s an extra line of code that doesn&#39;t actually<br>
&gt;&gt; compute anything.<br>
&gt;&gt;<br>
&gt;&gt; Thoughts?<br>
&gt;&gt;<br>
&gt;&gt; Daniel<br>
&gt;&gt;<br>
&gt;&gt; PS: Sorry if this has already been discussed; I&#39;m new to this list and<br>
&gt;&gt; I didn&#39;t see this mentioned in PEP 3099, unless it&#39;s covered under the<br>
&gt;&gt; LL(1) clause.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Python-3000 mailing list<br>
&gt;&gt; <a href="mailto:Python-3000@python.org">Python-3000@python.org</a><br>
&gt;&gt; <a href="http://mail.python.org/mailman/listinfo/python-3000" target="_blank">http://mail.python.org/mailman/listinfo/python-3000</a><br>
&gt;&gt; Unsubscribe:<br>
&gt;&gt; <a href="http://mail.python.org/mailman/options/python-3000/guido%40python.org" target="_blank">http://mail.python.org/mailman/options/python-3000/guido%40python.org</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; --Guido van Rossum (home page: <a href="http://www.python.org/%7Eguido/" target="_blank">http://www.python.org/~guido/</a>)<br>
&gt;<br>
_______________________________________________<br>
Python-3000 mailing list<br>
<a href="mailto:Python-3000@python.org">Python-3000@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-3000" target="_blank">http://mail.python.org/mailman/listinfo/python-3000</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-3000/paul.bedaride%40gmail.com" target="_blank">http://mail.python.org/mailman/options/python-3000/paul.bedaride%40gmail.com</a><br>
</div></div></blockquote></div><br>