[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-10 Thread Chris PeBenito
Chris PeBenito added the comment: I understand the resistance; I'm fine closing this as won't implement, though this is not for academic use. In a nutshell, my package currently has a set of classes to represent an SELinux policy, and the SELinux policy language represents networks

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-08 Thread Chris PeBenito
Chris PeBenito added the comment: That's unfortunate. The library provides factory functions so v4 and v6 addresses/networks are easily handled together, and yet it seems to have been overlooked that you can do this: ipaddress.ip_network('192.168.1.0/255.255.255.0

[issue22822] IPv6Network constructor docs incorrect about valid input

2014-11-08 Thread Chris PeBenito
New submission from Chris PeBenito: Here: https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv6Network In the constructor documentation, item 1 says: A string consisting of an IP address and an optional mask, separated by a slash (/). The IP address is the network address

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-05 Thread Chris PeBenito
New submission from Chris PeBenito: Python 3.3/3.4 sometimes does not recognize a legitimate IPv6Network netmask: $ python3 Python 3.3.5 (default, May 28 2014, 13:56:57) [GCC 4.7.3] on linux Type help, copyright, credits or license for more information. import ipaddress as ip nodecon