Parse the token string and return a list of identifying numbers and
names.
Firstly the token is split by the ',' character into its individual
elements and all whitespace stripped from the elements. Numbers are
converted to integers, names are left as strings, and ranges are
converted into the full list of integers.
- Parameters:
token (str) - The identification string, the elements of which are separated by
commas. Each element can be either a single number, a range of
numbers (two numbers separated by '-'), or a name.
verbosity (bool) - A flag which if True will cause a number of printouts to be
activated.
- Returns: list of int and str
- A list of identifying numbers and names.
|