[Python-checkins] r67557 - python/trunk/Doc/reference/datamodel.rst
georg.brandl
python-checkins at python.org
Fri Dec 5 09:06:58 CET 2008
Author: georg.brandl
Date: Fri Dec 5 09:06:57 2008
New Revision: 67557
Log:
Add an index entry for "subclassing immutable types".
Modified:
python/trunk/Doc/reference/datamodel.rst
Modified: python/trunk/Doc/reference/datamodel.rst
==============================================================================
--- python/trunk/Doc/reference/datamodel.rst (original)
+++ python/trunk/Doc/reference/datamodel.rst Fri Dec 5 09:06:57 2008
@@ -1162,9 +1162,10 @@
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
More information about the Python-checkins
mailing list