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/2003-October/038689.html below:

[Python-Dev] decorate-sort-undecorate

[Python-Dev] decorate-sort-undecorate [Python-Dev] decorate-sort-undecorateMoore, Paul Paul.Moore at atosorigin.com
Tue Oct 14 05:31:42 EDT 2003
From: Raymond Hettinger [mailto:python at rcn.com]
> I've got a first draft patch (sans docs and tests) loaded at:
>    www.python.org/sf/823292
>
> The argument keywords are: cmpfunc, key, reverse

Can I just clarify the meaning of reverse (the original posting
was a little unclear)? I think that

    l.sort(reverse=True)

should mean the same as

    l.sort()
    l.reverse()

(ie, both sort and reverse inplace, with a void return). The
original posting gave me the impression that a copy would be
done (which I don't think is necessary).

Paul.

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