summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2013-12-31 18:09:26 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2013-12-31 18:09:26 (GMT)
commit340a692283f2d7ebac27c68690b3f752f5ad845a (patch)
treebda5dd93c45931f13a5f99d17333bc27633bc251
parentb6fac245b5aaaf0b465c2f7f346c7f0ad82143f2 (diff)
downloadcpython-340a692283f2d7ebac27c68690b3f752f5ad845a.zip
cpython-340a692283f2d7ebac27c68690b3f752f5ad845a.tar.gz
cpython-340a692283f2d7ebac27c68690b3f752f5ad845a.tar.bz2
str subclasses may have non-empty __slots__, bytes subclasses can't.
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 48a42cc..b2847a0 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