Re: [Python-Dev] peps: document requirements

2013-09-30 Thread Christian Heimes
Am 30.09.2013 20:16, schrieb Antoine Pitrou: > On Mon, 30 Sep 2013 17:08:00 +0200 (CEST) > christian.heimes 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

Re: [Python-Dev] peps: document requirements

2013-09-30 Thread Antoine Pitrou
On Mon, 30 Sep 2013 17:08:00 +0200 (CEST) christian.heimes 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 i