How do I get a reference to a KEY value of a dictionary?

Andy C ayc8NOSPAM at
Sun Aug 3 01:34:20 CEST 2003

> Google("intern-like memory saver").

Well, that seems very sensical, so how come it hasn't made it into the
language?  And what's wrong with intern?  (Though intern only works on
strings, not for immutable objects in general.  I believe someone was asking
a pretty much identical question here, and someone replied with the
'memoize' pattern).

Can this be done without C, now that you can subclass the built-in


More information about the Python-list mailing list