Scott David Daniels wrote:
Assuming you really are going for "is" comparison, how about:
    max(id(x) for x in mylist) == min(id(x) for x in mylist)

It has the advantage that if [id(x) for x in mylist] = [2N, 1N, 3N],
you get the answer you desire.

Oops -- got me!  -John
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to