[issue20825] containment test for "ip_network in ip_network"
Antoine Pitrou
report at bugs.python.org
Sun Mar 2 14:56:16 CET 2014
Antoine Pitrou added the comment:
I don't think "in" is the right operator for this. You can draw an analogy with sets:
>>> a = {1,2}
>>> b = {1,2,3}
>>> a <= b
True
>>> a in b
False
In mathematical terms, there is a difference between inclusion (being a subset of) and containment (being an element of).
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20825>
_______________________________________
More information about the Python-bugs-list
mailing list