def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def setdefault(self, key, default=None):
        return self._collection.setdefault(key, self._from_python(key, default))