Re: ZTK 2.0: Deprecate zope.sequencesort

Martijn Pieters <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <CAJkXj+b50rs0TRPYHRi46g1EkhrXTfEE7_FWQTsi+pUD6Mj-Mw@mail.gmail.com>
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  -  [email protected]
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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.