summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-02-21 03:34:04 -0800
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-02-21 03:34:04 -0800
commit7463884f6993edcd92bec56213ee1959034fd31c (patch)
tree1d08a1f4977fa5ec8248fbc30a262d5ef61be965
parent3ad91673057d410bf9f8c53df6bb8aa18c4b68ca (diff)
downloadcpython-git-7463884f6993edcd92bec56213ee1959034fd31c.tar.gz
Document other performance implication for __slots__ (GH-11974)
-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 9961aee14e..9422ae66cb 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__