python 中的 self() 是什么?

luk*_*awk 6 python self

我以为我self在某种程度上理解了。但我遇到了这个:

    for f in flags:
        if f not in flagMap:
            raise error.Error('bad debug flag %s' % (f,))
        self._flags = self._flags | flagMap[f]
        self('debug category \'%s\' enabled' % f)
Run Code Online (Sandbox Code Playgroud)

有什么self(...)作用?