[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread Berker Peksag
Berker Peksag added the comment: See also issue 25431. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue looks as a duplicate of issue20825. I think that if consider a network as a set of addresses, the operation "address in network" has the same meaning as for sets, but the operation "network in network" doesn't make a sense. Instead you should use

[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread pmoody
Changes by pmoody : -- assignee: pmoody -> ___ Python tracker ___ ___ Python-bugs-list

[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread Łukasz Langa
New submission from Łukasz Langa: ipaddr historically let users compare if one network is within another network: https://github.com/google/ipaddr-py/blob/master/ipaddr.py#L643 ipaddress specifically prohibits this comparison: https://hg.python.org/cpython/file/tip/Lib/ipaddress.py#l675 What