[Python-checkins] r68797 - python/trunk/Doc/library/collections.rst

raymond.hettinger python-checkins at python.org
Tue Jan 20 08:11:48 CET 2009


Author: raymond.hettinger
Date: Tue Jan 20 08:11:47 2009
New Revision: 68797

Log:
Don't disrupt automatic url target name generation
with manually specified, conflicting names.

Before: 
    http://docs.python.org/dev/library/collections.html#id1

After:
    http://docs.python.org/dev/library/collections.html#counter-objects




Modified:
   python/trunk/Doc/library/collections.rst

Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst	(original)
+++ python/trunk/Doc/library/collections.rst	Tue Jan 20 08:11:47 2009
@@ -152,8 +152,6 @@
 (For more about ABCs, see the :mod:`abc` module and :pep:`3119`.)
 
 
-.. _counter-objects:
-
 :class:`Counter` objects
 ------------------------
 
@@ -281,7 +279,7 @@
     Counter({'a': 4, 'b': 3})
     >>> c - d                           # subtract (keeping only positive counts)
     Counter({'a': 2})
-    >>> c & d                           # interection:  min(c[x], d[x])
+    >>> c & d                           # intersection:  min(c[x], d[x])
     Counter({'a': 1, 'b': 1})
     >>> c | d                           # union:  max(c[x], d[x])
     Counter({'a': 3, 'b': 2})
@@ -314,13 +312,9 @@
    Section 4.6.3, Exercise 19
 
 
-
-.. _deque-objects:
-
 :class:`deque` objects
 ----------------------
 
-
 .. class:: deque([iterable[, maxlen]])
 
    Returns a new deque object initialized left-to-right (using :meth:`append`) with
@@ -469,8 +463,6 @@
    deque(['c', 'b', 'a'])
 
 
-.. _deque-recipes:
-
 :class:`deque` Recipes
 ^^^^^^^^^^^^^^^^^^^^^^
 
@@ -518,12 +510,10 @@
        'Return the last n lines of a file'
        return deque(open(filename), n)
 
-.. _defaultdict-objects:
 
 :class:`defaultdict` objects
 ----------------------------
 
-
 .. class:: defaultdict([default_factory[, ...]])
 
    Returns a new dictionary-like object.  :class:`defaultdict` is a subclass of the
@@ -569,8 +559,6 @@
       ``None``, if absent.
 
 
-.. _defaultdict-examples:
-
 :class:`defaultdict` Examples
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
@@ -640,8 +628,6 @@
    [('blue', set([2, 4])), ('red', set([1, 3]))]
 
 
-.. _named-tuple-factory:
-
 :func:`namedtuple` Factory Function for Tuples with Named Fields
 ----------------------------------------------------------------
 


More information about the Python-checkins mailing list