commit | 7463884f6993edcd92bec56213ee1959034fd31c | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | Thu Feb 21 03:34:04 2019 -0800 |
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Thu Feb 21 03:34:04 2019 -0800 |
tree | 1d08a1f4977fa5ec8248fbc30a262d5ef61be965 | |
parent | 3ad91673057d410bf9f8c53df6bb8aa18c4b68ca [diff] |
Document other performance implication for __slots__ (GH-11974)
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 @@ (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__