Kaydet (Commit) 3fc42260 authored tarafından Georg Brandl's avatar Georg Brandl

Add an index entry for "subclassing immutable types".

üst 0c880bd4
...@@ -1162,9 +1162,10 @@ of this is the :class:`NodeList` interface in the W3C's Document Object Model.) ...@@ -1162,9 +1162,10 @@ of this is the :class:`NodeList` interface in the W3C's Document Object Model.)
Basic customization Basic customization
------------------- -------------------
.. method:: object.__new__(cls[, ...]) .. method:: object.__new__(cls[, ...])
.. index:: pair: subclassing; immutable types
Called to create a new instance of class *cls*. :meth:`__new__` is a static 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 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 of which an instance was requested as its first argument. The remaining
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment