Converting tuple of lists of variable length into dictionary

Denis McMahon denismfmcmahon at gmail.com
Sun Oct 18 16:44:01 EDT 2015


On Sun, 18 Oct 2015 20:38:26 +0000, Denis McMahon wrote:

> On Sun, 18 Oct 2015 03:17:18 -0700, Beppe wrote:
> 
>> hi to everybody, I must turn a tuple of lists into a dictionary.
> 
> I went down a different path to Peter, and discovered something
> perplexing:

I just realised staring at it again that I'm getting the return value 
from the remove (ie None) in the failing case, because the remove is 
operating on the original list, rather than returning an updated copy.

-- 
Denis McMahon, denismfmcmahon at gmail.com



More information about the Python-list mailing list