flatten tuple

Delaney, Timothy tdelaney at avaya.com
Mon Apr 22 20:49:14 EDT 2002


> From: John Hunter [mailto:jdhunter at nitace.bsd.uchicago.edu]
>
> I want to be able to create a new tuple, which is the expanded and
> flattened version x, so that if an element of x is a key of m, then
> the new list has that value instead of the key value .  In the example

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/121294
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/118845

Always check the cookbook
http://aspn.activestate.com/ASPN/Python/Cookbook/

Tim Delaney





More information about the Python-list mailing list