From: Tim Peters Date: Tue, 11 Apr 2006 01:47:17 +0000 (+0000) Subject: Typo repair. X-Git-Tag: v2.5a2~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=527f652a8f0feaa8fba4b2d3f746dde6ebb55ce8;p=python Typo repair. --- diff --git a/Misc/NEWS b/Misc/NEWS index e3cfd8635e..7418daa173 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -15,7 +15,7 @@ Core and builtins - Patch #837242: ``id()`` of any Python object always gives a positive number now, which might be a long integer. ``PyLong_FromVoidPtr`` and ``PyLong_AsVoidPtr`` have been changed accordingly. Note that it has - never been correct to implement a ``hash()`` method that returns the + never been correct to implement a ``__hash()__`` method that returns the ``id()`` of an object: def __hash__(self): @@ -23,7 +23,7 @@ Core and builtins because a hash result must be a (short) Python int but it was always possible for ``id()`` to return a Python long. However, because ``id()`` - cuold return negative values before, on a 32-bit box an ``id()`` result + could return negative values before, on a 32-bit box an ``id()`` result was always usable as a hash value before this patch. That's no longer necessarily so.