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/038841.html below:

list.sort, was Re: [Python-Dev] decorate-sort-undecorate

list.sort, was Re: [Python-Dev] decorate-sort-undecorate list.sort, was Re: [Python-Dev] decorate-sort-undecorateGustavo Niemeyer niemeyer at conectiva.com
Thu Oct 16 19:24:44 EDT 2003
> If anything at all, i'd suggest a std-module which contains e.g. 
> 'sort', 'reverse' and 'extend' functions which always return
> a new list, so that you could write:
> 
>     for i in reverse(somelist):
>         ...

You can do reverse with [::-1] now.

-- 
Gustavo Niemeyer
http://niemeyer.net

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