Package dns :: Module grange
[hide private]
[frames] | no frames]

Module grange

source code

DNS GENERATE range conversion.

Functions [hide private]
 
from_text(text)
Convert the text form of a range in a ``$GENERATE`` statement to an integer.
source code
Variables [hide private]
  __package__ = 'dns'
Function Details [hide private]

from_text(text)

source code 

Convert the text form of a range in a ``$GENERATE`` statement to an integer.

*text*, a ``str``, the textual range in ``$GENERATE`` form.

Returns a tuple of three ``int`` values ``(start, stop, step)``.