is attribute access a hash-lookup by name?
Greg Ewing
see_reply_address at something.invalid
Thu Jul 4 20:55:47 EDT 2002
Aahz wrote:
> Also, with new-style
> classes, you can use __slots__ to force vectorized lookups, but it's
> more a memory-saving technique than a speedup.
I don't think it's a speedup at all, since you still
have to look up the class dict to find the descriptor
which tells what the slot offset is.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list