Document other performance implication for __slots__ (GH-11974)

This commit is contained in:
Raymond Hettinger 2019-02-21 03:34:04 -08:00 committed by Miss Islington (bot)
parent 3ad9167305
commit 7463884f69

View 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__