]> granicus.if.org Git - python/commitdiff
Add an index entry for "subclassing immutable types".
authorGeorg Brandl <georg@python.org>
Fri, 5 Dec 2008 08:06:57 +0000 (08:06 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 5 Dec 2008 08:06:57 +0000 (08:06 +0000)
Doc/reference/datamodel.rst

index 7304c9c385ca7e2769807a0935c43ec3fac3d1e1..4dcc96f6a6e3e6bd8238b8fd6a03988762f474b8 100644 (file)
@@ -1162,9 +1162,10 @@ of this is the :class:`NodeList` interface in the W3C's Document Object Model.)
 Basic customization
 -------------------
 
-
 .. method:: object.__new__(cls[, ...])
 
+   .. index:: pair: subclassing; immutable types
+
    Called to create a new instance of class *cls*.  :meth:`__new__` is a static
    method (special-cased so you need not declare it as such) that takes the class
    of which an instance was requested as its first argument.  The remaining