[Python-3000-checkins] r60806 - python/branches/py3k/Doc/library/functions.rst

raymond.hettinger python-3000-checkins at python.org
Thu Feb 14 15:08:04 CET 2008


Author: raymond.hettinger
Date: Thu Feb 14 15:08:04 2008
New Revision: 60806

Modified:
   python/branches/py3k/Doc/library/functions.rst
Log:
Minor doc updates for Py3.0

Modified: python/branches/py3k/Doc/library/functions.rst
==============================================================================
--- python/branches/py3k/Doc/library/functions.rst	(original)
+++ python/branches/py3k/Doc/library/functions.rst	Thu Feb 14 15:08:04 2008
@@ -92,14 +92,6 @@
           return False
 
 
-.. function:: basestring()
-
-   This abstract type is the superclass for :class:`str`.  It
-   cannot be called or instantiated, but it can be used to test whether an object
-   is an instance of :class:`str` (or a user-defined type inherited from
-   :class:`basestring`).
-
-
 .. function:: bin(x)
 
    Convert an integer number to a binary string. The result is a valid Python
@@ -296,20 +288,7 @@
      class's attributes, and recursively of the attributes of its class's base
      classes.
 
-   The resulting list is sorted alphabetically.  For example::
-
-      >>> import struct
-      >>> dir()
-      ['__builtins__', '__doc__', '__name__', 'struct']
-      >>> dir(struct)
-      ['__doc__', '__name__', 'calcsize', 'error', 'pack', 'unpack']
-      >>> class Foo(object):
-      ...     def __dir__(self):
-      ...         return ["kan", "ga", "roo"]
-      ...
-      >>> f = Foo()
-      >>> dir(f)
-      ['ga', 'kan', 'roo']
+   The resulting list is sorted alphabetically. 
 
    .. note::
 
@@ -623,10 +602,7 @@
    returns ``['a', 'b', 'c']`` and ``list( (1, 2, 3) )`` returns ``[1, 2, 3]``.  If
    no argument is given, returns a new empty list, ``[]``.
 
-   :class:`list` is a mutable sequence type, as documented in
-   :ref:`typesseq`. For other containers see the built in :class:`dict`,
-   :class:`set`, and :class:`tuple` classes, and the :mod:`collections` module.
-
+   :class:`list` is a mutable sequence type, as documented in :ref:`typesseq`. 
 
 .. function:: locals()
 
@@ -948,9 +924,6 @@
    Return a new set, optionally with elements are taken from *iterable*.
    The set type is described in :ref:`types-set`.
 
-   For other containers see the built in :class:`dict`, :class:`list`, and
-   :class:`tuple` classes, and the :mod:`collections` module.
-
 
 .. function:: setattr(object, name, value)
 
@@ -1082,9 +1055,7 @@
    3])`` returns ``(1, 2, 3)``.  If no argument is given, returns a new empty
    tuple, ``()``.
 
-   :class:`tuple` is an immutable sequence type, as documented in
-   :ref:`typesseq`. For other containers see the built in :class:`dict`,
-   :class:`list`, and :class:`set` classes, and the :mod:`collections` module.
+   :class:`tuple` is an immutable sequence type, as documented in :ref:`typesseq`. 
 
 
 .. function:: type(object)


More information about the Python-3000-checkins mailing list