parameters: (self, key)
docstring: Function called when requesting a missing key.
docstring_summary: Function called when requesting a missing key.
docstring_tokens: Function called when requesting a missing key .
function: def _factory(self, key):
          """Function called when requesting a missing key."""
  
          defaults = self._allowed_variables.get(key)
          if not defaults:
              raise KeyError('global_ns', 'get_unknown', key)
  
          # If the default is specifically a lambda (or, rather, any function
          # --but not a class that can be called), then it is actually a rule to
          # generate the default that should be used.
          default = defaults[0]
          if issubclass(default, ContextDerivedValue):
              return default(self)
          else:
              return default()
function_tokens: def _factory ( self , key ) : defaults = self . _allowed_variables . get ( key ) if not defaults : raise KeyError ( 'global_ns' , 'get_unknown' , key ) # If the default is specifically a lambda (or, rather, any function # --but not a class that can be called), then it is actually a rule to # generate the default that should be used. default = defaults [ 0 ] if issubclass ( default , ContextDerivedValue ) : return default ( self ) else : return default ( )