diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-02-21 11:34:04 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-02-21 11:34:04 (GMT) |
commit | 7463884f6993edcd92bec56213ee1959034fd31c (patch) | |
tree | 1d08a1f4977fa5ec8248fbc30a262d5ef61be965 /Doc/reference | |
parent | 3ad91673057d410bf9f8c53df6bb8aa18c4b68ca (diff) | |
download | cpython-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.rst | 1 |
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__ |