[Python-Dev] Dict suppressing exceptions (original) (raw)

Guido van Rossum guido at python.org
Thu Aug 10 16:32:29 CEST 2006


On 8/10/06, Michael Urman <murman at gmail.com> wrote:

I strongly believe that unicode vs str here is the symptom and not the actual problem.

No. Everywhere when eq fails, we can safely tell the user that it's a bug in their eq that they should fix (maybe by making it return False when the other object isn't a type they recognize). But we can't fix unicode-vs-str comparison without breaking too much code. So we have to somehow deal with that without changing the behavior of that particular eq.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list