Section » fields

fields(name) → list

Retrieve fields with the specified name from this current section.

enocolor: blue
color: red
color: orange
python>>> document = enopy.parse(input)
>>> colors = document.fields('color')

>>> for color in colors:
...   print(color.value())

Parameters

name

A string specifying the name of the fields to retrieve.

Return value

A list of Fields.