[Zope-dev] ZTK 2.0: Deprecate zope.sequencesort

Martijn Pieters mj at zopatista.com
Sat Mar 2 00:01:14 UTC 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/zope-dev/attachments/20130302/bc3f6de6/attachment.html>


More information about the Zope-Dev mailing list