FAQ
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedDec 3, '08 at 2:06p
activeDec 3, '08 at 2:06p
posts1
users1
websitepython.org

1 user in discussion

Poor Yorick: 1 post

People

Translate

site design / logo © 2022 Grokbase