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/2005-January/050599.html below:

[Python-Dev] Out-of-date FAQs

[Python-Dev] Out-of-date FAQs [Python-Dev] Out-of-date FAQsDelaney, Timothy C (Timothy) tdelaney at avaya.com
Tue Jan 4 00:25:23 CET 2005
While grabbing the link to the copyright restrictions FAQ (for someone
on python-list) I noticed a few out-of-date FAQ entries - specifically,
"most stable version" and "Why doesn't list.sort() return the sorted
list?". Bug reports have been submitted (and acted on - Raymond, you
work too fast ;)

I think it's important that the FAQs be up-to-date with the latest
idioms, etc, so as I have the time available I intend to review all the
existing FAQs that I'm qualified for.

As a general rule, when an idiom has changed, do we want to state both
the 2.4 idiom as well as the 2.3 idiom? In the case of list.sort(), that
would mean having both:

    for key in sorted(dict.iterkeys()):
        ...do whatever with dict[key]...

and

    keys = dict.keys()
    keys.sort()
    for key in keys:
        ...do whatever with dict[key]...

Tim Delaney
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