A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-March/109176.html below:

[Python-Dev] Python3 regret about deleting list.sort(cmp=...)

[Python-Dev] Python3 regret about deleting list.sort(cmp=...) [Python-Dev] Python3 regret about deleting list.sort(cmp=...)"Martin v. Löwis" martin at v.loewis.de
Sat Mar 12 23:53:20 CET 2011
> But in Python 3 this solution is no longer available. How bad is that?
> I'm not sure. But I'd like to at least get the issue out in the open.

Rather than reintroducing cmp=, I'd add a cached=True parameter.
If this is set to False, the key results wouldn't be put into a
list, but recreated every time two objects need to be compared.

Regards,
Martin

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4