This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ThiefMaster
Recipients ThiefMaster
Date 2016-06-08.14:55:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465397723.89.0.175384049159.issue27269@psf.upfronthosting.co.za>
In-reply-to
Content
I'd expect the IPv4 address to be considered part of that network (or actually parsed as an IPv4Address and not IPv6Address) even if it's written in IPv6 notation. It's an IPv4 after all.

Python 3.5.1 (default, Jun  7 2016, 09:20:44)
[GCC 4.9.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipaddress
>>> ipaddress.ip_address('::ffff:127.0.0.1')
IPv6Address('::ffff:7f00:1')
>>> ipaddress.ip_address('::ffff:127.0.0.1') in ipaddress.ip_network('127.0.0.0/8')
False
>>> ipaddress.ip_address('127.0.0.1') in ipaddress.ip_network('127.0.0.0/8')
True
History
Date User Action Args
2016-06-08 14:55:23ThiefMastersetrecipients: + ThiefMaster
2016-06-08 14:55:23ThiefMastersetmessageid: <1465397723.89.0.175384049159.issue27269@psf.upfronthosting.co.za>
2016-06-08 14:55:23ThiefMasterlinkissue27269 messages
2016-06-08 14:55:23ThiefMastercreate