MCPcopy Index your code
hub / github.com/secdev/scapy / __iter__

Method __iter__

scapy/base_classes.py:245–252  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

243 return next(iter(self), "")
244
245 def __iter__(self):
246 # type: () -> Iterator[str]
247 # Python 2 won't handle huge (> sys.maxint) values in range()
248 for i in range(self.count):
249 yield ScopedIP(
250 self.int2ip(self.start + i),
251 scope=self.scope,
252 )
253
254 def __len__(self):
255 # type: () -> int

Callers

nothing calls this directly

Calls 2

int2ipMethod · 0.95
ScopedIPFunction · 0.85

Tested by

no test coverage detected