[Python-Dev] peps: document requirements

Antoine Pitrou solipsis at pitrou.net
Mon Sep 30 20:16:44 CEST 2013

On Mon, 30 Sep 2013 17:08:00 +0200 (CEST)
christian.heimes <python-checkins at python.org> wrote:
> +
> +* It should return ``0`` for zero length input. (Note: This can be handled as
> +  special case, too.)

What is this required for? The main requirement is that equal stuff
hashes equal, but there's no reason for zero-length input to hash to
zero, AFAIK.



More information about the Python-Dev mailing list