Equal sets with unequal print and str() representations

2011-10-16 Thread Ganesh Gopalakrishnan
This probably is known, but a potential pitfall (was, for me) nevertheless. I suspect it is due to hash collisions between 's3' and 's13' in this case? It happens only rarely, depending on the contents of the set. >>> S1 = {'s8', 's3', 's2', 's0', 's7', 's6', 's4', 's13', 's14'} S1 = {'s8', 's

Re: Equal sets with unequal print and str() representations

2011-10-17 Thread Ganesh Gopalakrishnan
ng is because I tend to work within an Emacs inferior shell.) Cheers, Ganesh On 10/16/11 8:23 PM, Ben Finney wrote: Ganesh Gopalakrishnan writes: This probably is known, but a potential pitfall (was, for me) nevertheless. I suspect it is due to hash collisions between 's3' and &#x