[New-bugs-announce] [issue42774] 'ipaddress' module, bad result for 'is_private' on "192.0.0.0"
Trevor Marvin
report at bugs.python.org
Mon Dec 28 19:42:59 EST 2020
New submission from Trevor Marvin <python.org at syntechnix.net>:
Tested on Python 3.6.9 with "ipaddress" module, module version 1.0.
ipaddress.ip_address('192.0.0.0').is_private
Incorrectly returns as 'True'. Per RFC 1918 / BCP 5, section 3, the private IPv4 space sarting with '192' is only '192.168.0.0/16'.
----------
components: Library (Lib)
messages: 383942
nosy: trevormarvin
priority: normal
severity: normal
status: open
title: 'ipaddress' module, bad result for 'is_private' on "192.0.0.0"
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42774>
_______________________________________
More information about the New-bugs-announce
mailing list