Converting tuple of lists of variable length into dictionary

Erik python at lucidity.plus.com
Sun Oct 18 16:55:10 EDT 2015


On 18/10/15 21:38, Denis McMahon wrote:
> I'm not sure I understand why after m = deepcopy(l); m.remove(i); m is a
> different value to that which it as after m = deepcopy(l).remove(i).

It's because list.remove() returns None, not 'self'.

E.



More information about the Python-list mailing list