Author Joel Croteau
Recipients Joel Croteau
Date 2019-03-20.23:40:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553125209.55.0.0358803413865.issue36384@roundup.psfhosted.org>
In-reply-to
Content
I understand to a certain extent the logic in not allowing IPv4 octets that might ambiguously be octal, but in practice, it just seems like it creates additional parsing hassle needlessly. I have never in many years of working on many networked systems seen anyone use dotted octal format, it is actually specifically forbidden by RFC 3986 (https://tools.ietf.org/html/rfc3986#section-7.4), and it means that the ipaddress module throws exceptions on many perfectly valid IP addresses just because they have leading zeroes. Since the module doesn't support dotted octal or dotted hex anyway, this check seems a little pointless. If nothing else, there should be a way to disable this check by specifying that your IPs are in fact dotted decimal, otherwise it seems like it's just making you have to do extra parsing work or just write your own implementation.
History
Date User Action Args
2019-03-20 23:40:09Joel Croteausetrecipients: + Joel Croteau
2019-03-20 23:40:09Joel Croteausetmessageid: <1553125209.55.0.0358803413865.issue36384@roundup.psfhosted.org>
2019-03-20 23:40:09Joel Croteaulinkissue36384 messages
2019-03-20 23:40:09Joel Croteaucreate