This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: vague xref in description of sorted() builtin
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, rurpy
Priority: normal Keywords:

Created on 2006-06-24 20:12 by rurpy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg28888 - (view) Author: rurpy (rurpy) Date: 2006-06-24 20:12
In section 2.1, "Builtin Functions", in the 
description of function sorted(), it says:

The optional arguments cmp, key, and reverse have the 
same meaning as those for the list.sort() method. 

For someone not already very familiar with the 
organiztion of the Library Reference, a reference to 
list.sort() is not very useful.  If one looks in the 
index one sees "List Object" and "List, operations 
on".  Although the latter link does bring one to the 
right page (2.3.6.4 "Mutable Sequence Types") it is 
not obvious to those not yet used to the loose use of 
terms in the Puython docs, that "operation" 
and "method" are synonymous.  And God help the poor 
newbie who forgets the index and tries to find the 
relevent page using the ToC.

I suggest:
1) In sec. 2.1, explicity describe sorted()'s 
arguments rather than referencing list.sort().  Cut 
and paste from list.sort.  Mention (as a helpful "see 
also") the existence of the list.sort() method with a 
link.

If that is not acceptable than, 

2a) In sec 2.1, change word "method" to "operation", or
2b) In the index under "List", add a link "methods" 
pointing to section 2.1, (i.e. same target as the 
currently existing "operations" entry under List.
And, 
3) In sec 2.1 make the text "List.sorted()" a link to
to the List.sorted() page (2.3.6.4 "Mutable Sequence 
Types")
msg28889 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-07-03 14:19
Logged In: YES 
user_id=11375

Thanks for your comment!

In rev. 47220, I've copied the description of cmp, reverse,
and key, and also improved the xref to give the actual
section number.  Rev. 47222 applies the change to the 2.4
maintenance branch.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43545
2006-06-24 20:12:19rurpycreate