Section » lists

lists(name) → list

Retrieve lists with the specified name from this current section.

enoroute:
- vienna
- paris
- rome

route:
- moscow
- riga
python>>>document = enopy.parse(input)
>>>routes = document.lists('route')

>>> for route in routes:
...   print(route.items())

[ 'vienna', 'paris', 'rome']
[ 'moscow', 'riga' ]

Parameters

name

A string specifying the name of the lists to retrieve.

Return value

A list of Lists.