diff options
author | Raymond Hettinger <python@rcn.com> | 2003-12-17 20:43:33 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-12-17 20:43:33 (GMT) |
commit | 64958a15d7c03efdc3d2eddf247666e18d1fd910 (patch) | |
tree | bc135ae082f8635fa858b81f52f141d7ffbd4c78 /Doc/lib/libfuncs.tex | |
parent | df38ea9c29a431602704c6bd45ca7417225a61c4 (diff) | |
download | cpython-64958a15d7c03efdc3d2eddf247666e18d1fd910.zip cpython-64958a15d7c03efdc3d2eddf247666e18d1fd910.tar.gz cpython-64958a15d7c03efdc3d2eddf247666e18d1fd910.tar.bz2 |
Guido grants a Christmas wish:
sorted() becomes a regular function instead of a classmethod.
Diffstat (limited to 'Doc/lib/libfuncs.tex')
-rw-r--r-- | Doc/lib/libfuncs.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index dc9f344..99c586b 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -886,6 +886,15 @@ class C(object): \samp{a[start:stop, i]}. \end{funcdesc} +\begin{funcdesc}{sorted(\var{iterable}\optional{, \var{cmp}=None + \optional{, \var{key}=None + \optional{, \var{reverse}=False}}})} + Return a new sorted list from the items in \var{iterable}. + The optional arguments \var{cmp}, \var{key}, and \var{reverse} + have the same meaning as those for the \method{list.sort()} method. + \versionadded{2.4} +\end{funcdesc} + \begin{funcdesc}{staticmethod}{function} Return a static method for \var{function}. |