def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def memoized(*args):
        try:
            return stored_results[args]
        except KeyError:
            result = stored_results[args] = fn(*args)
            return result