Commit 7463884f authored by Raymond Hettinger's avatar Raymond Hettinger Committed by Miss Islington (bot)

Document other performance implication for __slots__ (GH-11974)

parent 3ad91673
......@@ -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__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment