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, denismfmcma...@gmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to