[issue22822] IPv6Network constructor docs incorrect about valid input
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, and the mask can be either a single number, which means it’s a prefix, or a string representation of an IPv6 address. If it’s the latter, the mask is interpreted as a net mask. If no mask is provided, it’s considered to be /128. For example, the following address specifications are equivalent: 2001:db00::0/24 and 2001:db00::0/ffff:ff00::. """ However in issue22800 it has been identified that using the expanded netmask (e.g. ff00::/ff00::) is not supported. ---------- assignee: docs@python components: Documentation messages: 230871 nosy: docs@python, pebenito priority: normal severity: normal status: open title: IPv6Network constructor docs incorrect about valid input type: behavior versions: Python 3.3, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22822> _______________________________________
Changes by Terry J. Reedy <tjreedy@udel.edu>: ---------- nosy: +ncoghlan, pmoody _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22822> _______________________________________
Berker Peksag added the comment: Thanks for the report Chris. The patch in issue 18802 should solve this. It would be great if you'd have time to take a look at it (should we add a note that says we only support CIDR for IPv6?) ---------- nosy: +berker.peksag _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22822> _______________________________________
Change by Xiang Zhang <angwerzx@126.com>: ---------- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> ipaddress documentation errors _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue22822> _______________________________________
participants (4)
-
Berker Peksag
-
Chris PeBenito
-
Terry J. Reedy
-
Xiang Zhang