]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
only nonempty __slots__ don't work
authorBenjamin Peterson <benjamin@python.org>
Thu, 23 Oct 2008 21:43:48 +0000 (21:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 23 Oct 2008 21:43:48 +0000 (21:43 +0000)
Doc/reference/datamodel.rst

index 8e3e79ec607d8157d36b1de99cfab4402c2fef42..b1ab8fd97cc60cbd43ac8aac7c83668daa2e2ff8 100644 (file)
@@ -1663,8 +1663,8 @@ Notes on using *__slots__*
   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