(self)
| 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 |