oslso-config
has this usage in use.
But where CONF is defined, no parameters are required. How can I pass it to CONF when calling? What about parameters?
大家讲道理2017-06-30 09:55:00
Look at oslo_config.cfg.ConfigOpts#__call__
https://github.com/openstack/...
def __call__(self,
args=None,
project=None,
prog=None,
version=None,
usage=None,
default_config_files=None,
default_config_dirs=None,
validate_default_values=False,
description=None,
epilog=None):
Magic method __call__
Use objects as functions