How can I create customized classes that have similar properties as 'str'?

Hrvoje Niksic hniksic at xemacs.org
Sun Nov 25 01:38:51 CET 2007


samwyse <samwyse at gmail.com> writes:

> create a hash that maps your keys to themselves, then use the values
> of that hash as your keys.

The "atom" function you describe already exists under the name
"intern".



More information about the Python-list mailing list