diff options
author | Guido van Rossum <guido@python.org> | 2003-02-03 19:46:54 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-02-03 19:46:54 +0000 |
commit | 93fe5642175ce5b7771c3b6e32f820b4788604e9 (patch) | |
tree | c3ca8087609373c676c816b548e748b70607b750 /Python/bltinmodule.c | |
parent | 2de97d398d5a66307228b1269812da94e65e20a3 (diff) | |
download | cpython-git-93fe5642175ce5b7771c3b6e32f820b4788604e9.tar.gz |
_slotnames(): this is a fairly expensive calculation. Cache the
outcome as __slotnames__ on the class. (Like __slots__, it's not safe
to ask for this as an attribute -- you must look for it in the
specific class's __dict__. But it must be set using attribute
notation, because __dict__ is a read-only proxy.)
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions