From 7463884f6993edcd92bec56213ee1959034fd31c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 21 Feb 2019 03:34:04 -0800 Subject: Document other performance implication for __slots__ (GH-11974) --- Doc/reference/datamodel.rst | 1 + 1 file changed, 1 insertion(+) 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__ -- cgit v0.12