[issue20508] IndexError from ipaddress._BaseNetwork.__getitem__ has no message
Gareth Rees
report at bugs.python.org
Sat Jun 11 11:59:47 EDT 2016
Gareth Rees added the comment:
I've attached a revised patch that addresses Berker Peksag's concerns:
1. The message associated with the IndexError is now "address out of range" with no information about which address failed or why.
2. There's a new test case for an IndexError from an IPv6 address lookup.
----------
Added file: http://bugs.python.org/file43341/ipaddress.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20508>
_______________________________________
More information about the Python-bugs-list
mailing list