I'm looking for a Python3-compatible way to sort a list of PIL image objects based on a computed difference between the two images. In 2.x, this would work:
imagelist.sort(cmp=image_diff(a,b)) Maybe this could be done by creating a new class with the appropriate __lt__, ____gt__, __eq__ methods, but that seems like more work than should be necessary. Any suggestions? -- Yorick -- http://mail.python.org/mailman/listinfo/python-list