I find myself frequently in need of classes like this for two reasons. First, it's efficient in memory. Second, when two instances are compared for equality only their pointers are compared. (I think that's how Python compares 'str's.
On Nov 24, 6:31 pm, Licheng Fang <[EMAIL PROTECTED]> wrote: > I mean, all the class instances that equal to each other should be > reduced into only one instance, which means for instances of this > class there's no difference between a is b and a==b. > > Thank you. -- http://mail.python.org/mailman/listinfo/python-list