Mon, 18 May 2015 16:21:29 +0200 Cédric Krier <[email protected]>: >On 18 May 16:08, Udo Spallek wrote: >> Sat, 16 May 2015 20:39:38 +0200 >> Cédric Krier <[email protected]>: >> >On 16 May 14:20, Udo Spallek wrote: >> ... >> >> Is the use of ``get_singleton()`` recommended in module code or >> >> better stay with config = Config(1)? >> >Obviously it is not the recommended way. >> >Indeed I don't see any advantage in using get_singleton but I see >> >one for the current way, it prevent a search if the configuration >> >is not used. >> Ok, sounds reasonable. Is a patch welcome, removing get_singleton() >> from code and doc? >Why?
Ouch, I see, the method is solely for internal use in ModelSingleton. So nothing else to do here. Thanks for clarification. Regards Udo
pgpjUuV5whSfZ.pgp
Description: Digitale Signatur von OpenPGP
