[issue44012] IPv6Address.exploded does not support interface name (scope id)

2021-05-02 Thread Oliver Giles


New submission from Oliver Giles :

IPv6 addresses may contain a scope id, for example "fe80::1%eth0".

These are usually required for link-local addresses.

bpo-34788 added support for scoped IPv6 addresses, but missed the
"exploded" method:

>>> import ipaddress
>>> ipaddress.IPv6Address('fe80::1%eth0').exploded
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.9/ipaddress.py", line 394, in exploded
return self._explode_shorthand_ip_string()
  File "/usr/lib/python3.9/ipaddress.py", line 1824, in 
_explode_shorthand_ip_string
ip_int = self._ip_int_from_string(ip_str)
  File "/usr/lib/python3.9/ipaddress.py", line 1705, in _ip_int_from_string
raise AddressValueError("%s in %r" % (exc, ip_str)) from None
ipaddress.AddressValueError: Only hex digits permitted in '1%eth0' in 
'fe80::1%eth0'

--
components: Library (Lib)
messages: 392740
nosy: ohwgiles
priority: normal
severity: normal
status: open
title: IPv6Address.exploded does not support interface name (scope id)

___
Python tracker 
<https://bugs.python.org/issue44012>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2021-05-02 Thread Oliver Giles


Change by Oliver Giles :


--
nosy: +ohwgiles
nosy_count: 10.0 -> 11.0
pull_requests: +24512
pull_request: https://github.com/python/cpython/pull/25824

___
Python tracker 
<https://bugs.python.org/issue34788>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44012] IPv6Address.exploded does not support interface name (scope id)

2021-05-02 Thread Oliver Giles


Change by Oliver Giles :


--
keywords: +patch
pull_requests: +24511
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25824

___
Python tracker 
<https://bugs.python.org/issue44012>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com