Is it possible to have IPSet not merge adjacent networks?
Eg.
>>> s = IPSet()
>>> s.add('
192.168.0.0/24')
>>> s.add('
192.168.1.0/24')
>>> s.iter_cidrs()
[IPNetwork('
192.168.0.0/24'), IPNetwork('
192.168.1.0/24')]
I agree that having IPSet merge elements where possible is usually
useful.
I am trying to use IPSet to represent various objects coming from
different data sources, and then quickly perform set operations upon
them. As each element that I put into the set represents a unique
object when IPSet merges the elements, the set no longer represents
the source data and the set operations are meaningless.
Thanks,
Daniel
Sydney, Australia