On 15/12/2011 17:59, Miki Tebeka wrote:
 My sort issue... as in this doesn't work
 >>>  if x.sort == y.sort:
You're missing the () to make it a function call.
Also list.sort() returns none, it mutates the original list.
You can either
     sorted(x) == sorted(y)
or
     set(x) == set(y)

But don't use sets if there may be duplicates.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to