[issue22282] ipaddress module accepts octal formatted IPv4 addresses in IPv6 addresses

2021-12-08 Thread Irit Katriel
Irit Katriel added the comment: This is what I get now on 3.11: >>> ipaddress.ip_address("::1.0.0.00") Traceback (most recent call last): File "", line 1, in File "C:\Users\User\src\cpython\Lib\ipaddress.py", line 54, in ip_address raise ValueError('%r does not appear to be an IPv4 o

[issue22282] ipaddress module accepts octal formatted IPv4 addresses in IPv6 addresses

2021-04-11 Thread Julian Berman
Change by Julian Berman : -- nosy: +Julian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22282] ipaddress module accepts octal formatted IPv4 addresses in IPv6 addresses

2014-08-28 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +ncoghlan, pitrou, pmoody ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue22282] ipaddress module accepts octal formatted IPv4 addresses in IPv6 addresses

2014-08-27 Thread Fabian
Fabian added the comment: The patch adds an optional keyword which only accepts decimal numbers. -- keywords: +patch Added file: http://bugs.python.org/file36489/ipaddr.patch ___ Python tracker

[issue22282] ipaddress module accepts octal formatted IPv4 addresses in IPv6 addresses

2014-08-27 Thread Fabian
New submission from Fabian: The ipaddress module accepts IPv6 addresses if the IPv4 address is formatted as an octal number, but http://tools.ietf.org/html/rfc3986#section-3.2.2 doesn't allow leading zeroes in the IPv4 address. This is the current behaviour (in 3.4.1): >>> ipaddress.ip_addres