Author: raymond.hettinger
Date: Thu Feb 14 14:34:38 2008
New Revision: 60803
Modified:
python/branches/py3k/Doc/library/stdtypes.rst
Log:
Note the the sort arguments are required to be keywords.
Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst (original)
+++ python/branches/py3k/Doc/library/stdtypes.rst Thu Feb 14 14:34:38 2008
@@ -1266,7 +1266,7 @@
| ``s.reverse()`` | reverses the items of *s* in | \(6)
|
| | place |
|
+------------------------------+--------------------------------+---------------------+
-| ``s.sort([key[, reverse]])`` | sort the items of *s* in place | (6), (7)
|
+| ``s.sort([key[, reverse]])`` | sort the items of *s* in place | (6), (7),
(8) |
+------------------------------+--------------------------------+---------------------+
.. index::
@@ -1315,10 +1315,8 @@
sequence.
(7)
- :meth:`sort` is not supported by :class:`bytearray` objects.
-
The :meth:`sort` method takes optional arguments for controlling the
- comparisons.
+ comparisons. Each must be specified as a keyword argument.
*key* specifies a function of one argument that is used to extract a
comparison
key from each list element: ``key=str.lower``. The default value is
``None``.
@@ -1336,6 +1334,8 @@
makes the list appear empty for the duration, and raises :exc:`ValueError`
if it
can detect that the list has been mutated during a sort.
+(8)
+ :meth:`sort` is not supported by :class:`bytearray` objects.
.. _bytes-methods:
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins