[Python-ideas] [Python-Dev] One obvious way to do interning [Was: Retrieve anarbitrary element from a set without removing it]

Raymond Hettinger python at rcn.com
Mon Oct 26 18:40:19 CET 2009

>> Here is an alternative idea on how storing interned objects in a set
>> can be supported. 

FWIW, here is a recipe that can retrieve canonical objects
from any container, letting look-up a preferred representative
of an equivalence class: http://code.activestate.com/recipes/499299/


More information about the Python-ideas mailing list