pmoody added the comment:
# We only support CIDR for IPv6, because expanded netmasks are not
# standard notation.
Yes, that's correct. I can double check this, but when I wrote ipaddress, I had
yet to encounter a v6 netmask in anything other than cider notation.
--
pmoody added the comment:
Hey Chris,
What's the usecase for this? the netmask notation doesn't appear to be common
for v6 (at all), so I'm hesitant to add support for this if it's just something
like an academic exercise.
Cheers,
peter
--
___
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 with
pmoody added the comment:
If you have the ability to use cidr, then closing this as wontfix is my
preference. I've heard that there might be some network vendors that are
starting support the mask notation for v6 addresses though, so this may end up
getting implemented at some point in future
Changes by Antoine Pitrou pit...@free.fr:
--
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22800
___
___
Antoine Pitrou added the comment:
The doc is unhelpful on this, but looking at the implementation and tests, only
a prefix length is allowed, not an expanded netmask. This would therefore be a
feature request.
--
type: behavior - enhancement
versions: -Python 3.4
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')
but not this:
Antoine Pitrou added the comment:
I don't know enough about IPv6 to give more insight (perhaps Peter Moody can
answer), but the tests have this comment:
# We only support CIDR for IPv6, because expanded netmasks are not
# standard notation.
--
___
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 =
Changes by Ned Deily n...@acm.org:
--
nosy: +ncoghlan, pmoody
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22800
___
___
Python-bugs-list mailing
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22800
___
___
11 matches
Mail list logo