summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-02-21 11:34:04 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-02-21 11:34:04 (GMT)
commit7463884f6993edcd92bec56213ee1959034fd31c (patch)
tree1d08a1f4977fa5ec8248fbc30a262d5ef61be965 /Doc/reference
parent3ad91673057d410bf9f8c53df6bb8aa18c4b68ca (diff)
downloadcpython-7463884f6993edcd92bec56213ee1959034fd31c.zip
cpython-7463884f6993edcd92bec56213ee1959034fd31c.tar.gz
cpython-7463884f6993edcd92bec56213ee1959034fd31c.tar.bz2
Document other performance implication for __slots__ (GH-11974)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 9961aee..9422ae6 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1727,6 +1727,7 @@ properties) and deny the creation of *__dict__* and *__weakref__*
(unless explicitly declared in *__slots__* or available in a parent.)
The space saved over using *__dict__* can be significant.
+Attribute lookup speed can be significantly improved as well.
.. data:: object.__slots__