def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def __setitem__(self, key, value):
        self._collection[key] = self._from_python(key, value)