Return the results of a callable method (with arguments) applied to the field.
f.method(callable_method, *args, **kwargs) is equivalent to f.callable_method(*args, **kwargs).
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> f.getprop('standard_name')
'air_temperature'
>>> f.method('getprop', 'standard_name')
'air_temperature'
>>> print f.method('squeeze')
None