[Python-Dev] eq vs hash (original) (raw)

Jason Orendorff jason.orendorff at gmail.com
Fri Apr 4 17:08:26 CEST 2008


On Fri, Apr 4, 2008 at 9:38 AM, Guido van Rossum <guido at python.org> wrote:

What specific code breaks? Maybe we need to turn this into a warning in order to be more backwards compatible?

I looked at Mercurial.

It doesn't use hash at all. It uses eq in two files, three total uses: http://hg.intevation.org/mercurial/crew/file/6c4e12682fb9/mercurial/commands.py http://hg.intevation.org/mercurial/crew/file/6c4e12682fb9/mercurial/context.py

-j



More information about the Python-Dev mailing list