module confusion

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Oct 5 06:55:06 EDT 2007


On Fri, 05 Oct 2007 19:51:05 +1300, Lawrence D'Oliveiro wrote:

> There is no sense in which any Python object can "contain" any other.

>>> L = [1, 2, 3]
>>> 2 in L
True
>>> L.__contains__(3)
True



-- 
Steven.



More information about the Python-list mailing list