Return an iterator over the results of a method applied to the field list.
fl.iter(name) is equivalent to iter(getattr(fl, name)()).
Parameters: |
|
---|---|
Returns: |
|
See also
Examples: |
---|
>>> fl.getprop('standard_name')
['air_temperature', 'eastward_wind']
>>> for x in fl.iter('getprop', 'standard_name'):
... print x
...
'air_temperature'
'eastward_wind'
>>> fl.iter('squeeze')
[None, None]