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

Hrvoje Niksic hniksic at xemacs.org
Sat Nov 24 19:38:51 EST 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