]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document other performance implication for __slots__ (GH-11974) (GH-11975)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Feb 2019 17:10:20 +0000 (09:10 -0800)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Thu, 21 Feb 2019 17:10:20 +0000 (09:10 -0800)
(cherry picked from commit 7463884f6993edcd92bec56213ee1959034fd31c)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Doc/reference/datamodel.rst

index f31ddb15e5cbd7062c5e3e195a3d762dfa7de667..22c9b4153e205d51add8a4ef2f6dc5868fcccc68 100644 (file)
@@ -1725,6 +1725,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__