From: Zachary Ware Date: Tue, 31 Dec 2013 18:09:26 +0000 (-0600) Subject: str subclasses may have non-empty __slots__, bytes subclasses can't. X-Git-Tag: v3.4.0b2~61^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=340a692283f2d7ebac27c68690b3f752f5ad845a;p=thirdparty%2FPython%2Fcpython.git str subclasses may have non-empty __slots__, bytes subclasses can't. --- diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 48a42cc17e98..b2847a03a74f 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1571,7 +1571,7 @@ Notes on using *__slots__* program undefined. In the future, a check may be added to prevent this. * Nonempty *__slots__* does not work for classes derived from "variable-length" - built-in types such as :class:`int`, :class:`str` and :class:`tuple`. + built-in types such as :class:`int`, :class:`bytes` 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