diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-23 21:43:48 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-23 21:43:48 (GMT) |
commit | c756dcdd6086a5619e5acc0899197b01ae149e37 (patch) | |
tree | 6dc3fa4c74bc429e50bb66a62c321e9fc496ba79 /Doc | |
parent | 611e48c1bb79748570b5cb883a6b6ff520e2354e (diff) | |
download | cpython-c756dcdd6086a5619e5acc0899197b01ae149e37.zip cpython-c756dcdd6086a5619e5acc0899197b01ae149e37.tar.gz cpython-c756dcdd6086a5619e5acc0899197b01ae149e37.tar.bz2 |
only nonempty __slots__ don't work
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 8e3e79e..b1ab8fd 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -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 |