comparison configmix/config.py @ 731:75d37575472b

Docs: Add does to some methods that are yet missing docs
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 18 Aug 2023 00:29:55 +0200
parents c17a4e30ebbf
children cabd1046d95f
comparison
equal deleted inserted replaced
730:0fab9cbccfa7 731:75d37575472b
496 self.__lookup_cache.clear() 496 self.__lookup_cache.clear()
497 if self.__interpolation_cache is not None: 497 if self.__interpolation_cache is not None:
498 self.__interpolation_cache.clear() 498 self.__interpolation_cache.clear()
499 499
500 def disable_cache(self): 500 def disable_cache(self):
501 """Disable the internal lookup cache and the interpolation cache"""
501 self.__lookup_cache = None 502 self.__lookup_cache = None
502 self.__interpolation_cache = None 503 self.__interpolation_cache = None
503 504
504 def enable_cache(self): 505 def enable_cache(self):
506 """Enable the internal lookup cache and the interpolation cache.
507
508 The caches are empty after enabling.
509
510 """
505 self.__lookup_cache = {} 511 self.__lookup_cache = {}
506 self.__interpolation_cache = {} 512 self.__interpolation_cache = {}
507 513
508 def __getitem__(self, key): 514 def __getitem__(self, key):
509 """Mapping and list interface that forwards to :meth:`~.getvarl_s` 515 """Mapping and list interface that forwards to :meth:`~.getvarl_s`