[Python-checkins] cpython (3.3): str subclasses may have non-empty __slots__, bytes subclasses can't.

zach.ware python-checkins at python.org
Tue Dec 31 19:10:36 CET 2013


http://hg.python.org/cpython/rev/8b4d36d0c090
changeset: 88232:8b4d36d0c090
branch: 3.3
parent: 88219:a43e96695203
user: Zachary Ware <zachary.ware at gmail.com>
date: Tue Dec 31 12:09:26 2013 -0600
summary:
 str subclasses may have non-empty __slots__, bytes subclasses can't.
files:
 Doc/reference/datamodel.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1571,7 +1571,7 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /