[Python-checkins] r67007 - python/trunk/Doc/reference/datamodel.rst

benjamin.peterson python-checkins at python.org
Thu Oct 23 23:43:49 CEST 2008


Author: benjamin.peterson
Date: Thu Oct 23 23:43:48 2008
New Revision: 67007

Log:
only nonempty __slots__ don't work

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	Thu Oct 23 23:43:48 2008
@@ -1663,8 +1663,8 @@
   defined.  As a result, subclasses will have a *__dict__* unless they also define
   *__slots__*.
 
-* *__slots__* do not work for classes derived from "variable-length" built-in
-  types such as :class:`long`, :class:`str` and :class:`tuple`.
+* Nonempty *__slots__* does not work for classes derived from "variable-length"
+  built-in types such as :class:`long`, :class:`str` and :class:`tuple`.
 
 * Any non-string iterable may be assigned to *__slots__*. Mappings may also be
   used; however, in the future, special meaning may be assigned to the values


More information about the Python-checkins mailing list