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

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

samwyse <samwyse at> 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

More information about the Python-list mailing list