<br>
"Facundo Batista" <<a href="mailto:facundobatista@gmail.com">facundobatista@gmail.com</a>><br>>bar, spam = d.multiple("foo", "egg")<br><br>Terry Reed:<br>
->1 because the need is way to rare for new syntax support and because<br>
<br>
|  bar, spam = [d[k] for k in ("foo", "egg")]<br>
<br>>already does what is wanted in easily understood code.<br><br>This is true, but with a fast implementation this<br>operation is incredibly useful.  If we go waaay back<br>to kjbuckets (the original "set" module circa 1993 or so)<br>
there was<br><br>(v1,v2,v3) = D.dump( (k1,k2,k3))<br><br>and also the inverse operation<br><br>kjDict.undump( (k1,k2,k3), (v1, v2, v3) )<br><br>which are extremely useful for packing/unpacking<br>large data structures.<br>
<br>Please see<br><a href="http://gadfly.sourceforge.net/kjbuckets.html">http://gadfly.sourceforge.net/kjbuckets.html</a><br><br>There are lots of other cool operations which<br>can be very handy -- transpose, difference, closure...<br>
<br>By the way, I've been delighted to see Python<br>gradually growing features that kjbuckets provided<br>more than a decade ago.  It's just too bad you<br>guys can't figure out how to get them all at once<br>
somehow....<br><br>   -- Aaron Watters<br><br>===<br><a href="http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=buckets">http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=buckets</a><br><br>