To make things more explicit, configurations should be used either explicitely as a configuration object or not, i.e. use MyConfig.C(...) rather than MyConfig. This is handled by the method __new__ in Config at the moment.
In the future, this should be forbidden (i.e. the __new__ should be removed), but meanwhile it would be good to generate a warning when __new__ is called directly. The end-user documentation should also be updated.
Tasks:
To make things more explicit, configurations should be used either explicitely as a configuration object or not, i.e. use
MyConfig.C(...)rather thanMyConfig. This is handled by the method__new__inConfigat the moment.In the future, this should be forbidden (i.e. the
__new__should be removed), but meanwhile it would be good to generate a warning when__new__is called directly. The end-user documentation should also be updated.Tasks:
__new__