[Python-Dev] returning longs from __hash__()

"Martin v. Löwis" martin at v.loewis.de
Thu Aug 10 21:13:22 CEST 2006


Armin Rigo schrieb:
> This bug will keep showing up forever :-)  It's unsafe against a user
> subclassing 'long' and overriding __hash__ of that subclass to return
> the object itself -- it would cause an infinite C recursion.

I see you've fixed it - thanks.

Martin


More information about the Python-Dev mailing list