Nick Coghlan <ncogh...@gmail.com> wrote: > > + if (b == c): > > + self.assertEqual(hash(b), hash(c)) > > These checks could do with a comment explaining why the if statements > are needed (I'm assuming something to do with memory order).
The checks aren't needed; they were supposed to spell out the equality-hash relationship. But that isn't obvious, so I'll add a comment or remove them. Stefan Krah _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com