timmerk / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

'bigger network' is contained in 'smaller network' #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
>>> from ipaddr import IPv4Network as net
>>> a = net('166.1.0.0/15')
>>> b = net('166.1.0.0/16')
>>> a in b
True
>>> b in a
True

What is the expected output? What do you see instead?
'a in b' should return False

What version of the product are you using? On what operating system?
ipaddr 2.1.2 on windows with python 3.1

Please provide any additional information below.

Original issue reported on code.google.com by bw.defa...@googlemail.com on 2 Jun 2010 at 1:28

GoogleCodeExporter commented 9 years ago
r171.

that was a bone-headed error on my part. thanks for reporting this.

Original comment by pmo...@google.com on 9 Jun 2010 at 5:53