Glenn Linderman wrote: > Sounds to me like containment checking is wrong; that if it gets an > exception during the comparison that it should assume unequal, rather > than aborting, and continue to the next entry. What exception would it catch, though? Catching something as generic as TypeError would be a very bad idea, I think -- there would be too much potential for it to mask bugs. It might be acceptable if there were a special subclass of TypeError for this, such as NotComparableError. What happens in Py3 here, BTW? It must have the same problem if it refuses to compare some things for equality. -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4