On Mon, Nov 21, 2016 at 12:12 AM, Thorsten Kampe <thors...@thorstenkampe.de> wrote: > Chris, it's up to the consumer to decide which key/keyfunc to use. > The lists as keys (that is first element in an tuple) are created on > the fly and not used for anything. They are mutable but not mutated. > > Mutating the list would be like mutating a list you're iterating > through: just don't do it.
Then use tuples. Job done! :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list