A generator producing sequences of network addresses based on start
and stop values, in intervals of step.
- Parameters:
start - first network address as string or instance of Addr
(sub)class.
stop - last network address as string or instance of Addr
(sub)class.
step - (optional) size of step between addresses in range. Default is 1.
klass - (optional) the class used to create objects returned. Default: Addr
class.
-
str returns string representation of network
address
-
int , long and hex
return expected values
-
Addr (sub)class or duck type* return objects
of that class. If you use your own duck class, make sure you
handle both arguments
(addr_value, addr_type)
passed to the constructor.
|