Return an iterator over the results of a method applied to the field list.
fl.iter(name, *args, **kwargs) is equivalent to iter(getattr(fl, name)(*args, **kwargs)).
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]