On Thursday, February 28, 2013, Stephan Richter wrote:

> I would like to deprecate zope.sequencesort in ZTK 2.0, since it cannot
> properly ported to Python 3, since it depends heavily on the cmp() way of
> sorting. I am also not a user of the package and I only tried to port the
> package for completeness sake.
>

You can always fall back to functools.cmp_to_key() to use cmp-based sorting
in python 3:

http://docs.python.org/3/library/functools.html#functools.cmp_to_key

-- 
Martijn Pieters


-- 
Martijn Pieters
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to