structured unpacking assignments
Dave Benjamin
ramen at lackingtalent.com
Mon Oct 25 15:13:36 EDT 2004
In article <20041022115302.2d4e7b78.gry at ll.mit.edu>, george young wrote:
> Now, I think that pythoneers often use bare list/tuple structures
> when a class would be much clearer, and I don't recommend managing halibut
> data as in the example. But the first example seems quite clear and natural.
>
> Does anyone else have illustrious examples of structured unpacking?
I used them to deconstruct linked lists and trees in the following recipe on
ASPN's Python Cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302467
--
.:[ dave benjamin: ramen/[sp00] -:- spoomusic.com -:- ramenfest.com ]:.
"talking about music is like dancing about architecture."
More information about the Python-list
mailing list