Paul Rubin wrote:

> Peter Otten <__pete...@web.de> writes:
>> assert len(keydict) == len(mydict)
> 
> assert set(keydict) == set(mydict)

The weaker check is O(1), and, combined with the succeeding for loop, 
implies the above.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to