[issue20446] ipaddress: hash similarities for ipv4 and ipv6
Antoine Pitrou
report at bugs.python.org
Sat Jun 21 03:33:02 CEST 2014
Antoine Pitrou added the comment:
> Tim Peters added the comment:
>
> I'm more puzzled by why `__hash__()` here bothers to call `hex()` at
all. It's faster to hash the underlying int as-is, and collisions in
this specific context would still be rare.
Let someone provide a patch, then.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20446>
_______________________________________
More information about the Python-bugs-list
mailing list