Archives for the Date February 9th, 2008

Learning Python: Chapter 6

L1 = [1, 2, 3]
L2 = L1
L1 == L2 and L1 is L2 both yield True. 
L1 = [1, 2, 3]
L2 = [1, 2, 3]
L1 == L2 yields True (same values), but L1 is L2 yields False (different objects).
[...]