Re: [Python-ideas] Associative arrays in hardware

April 16, 2008
6:47 a.m.
Mathias Panzenböck wrote:
Yes, and that's that most language identifiers are "interned" strings: just a pointer to them is sufficient for equality comparison. (Ruby and every Lisp dialect on the planet call these "symbols".) Python is so very close to using nothing but interned strings for all namespace dicts that it wouldn't be that difficult to change it. It's entirely possible that a hash of the string pointer would be sufficient, so it wouldn't even be necessary to hash the string and send it along.
6158
Age (days ago)
6158
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neil Toronto