Return a single element iterable for the output of a method (with arguments).
f.iter(name, *args, **kwargs) is equivalent to [f.name(*args, **kwargs)].
See also
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> f.getprop('standard_name'):
air_pressure
>>> f.iter('getprop', 'standard_name'):
('air_pressure',)
>>> print f.squeeze()
None
>>> print f.iter('squeeze')
(None,)