]> granicus.if.org Git - python/commitdiff
Document other performance implication for __slots__ (GH-11974)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Thu, 21 Feb 2019 11:34:04 +0000 (03:34 -0800)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Feb 2019 11:34:04 +0000 (03:34 -0800)
Doc/reference/datamodel.rst

index 9961aee14e06524606ad62ef576a14c658aa8ad1..9422ae66cb9c11bfc120351d62d5372b36a98a32 100644 (file)
@@ -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__