This module contains the python code fold detector.
Bases: pyqode.core.api.folding.IndentFoldDetector
Python specific fold detector.
Python is an indent based language so we use indentation for detecting the outline but we discard regions with higher indentation if they do not follow a trailing ‘:’. That way, only the real logical blocks are displayed.
We also add some trickery to make import regions and docstring appear with an higher fold level than they should be (in order to make them foldable).
pyqode.python is an extension of pyqode.core that brings support for the python programming language. It provides a set of additional modes and panels for the frontend and a series of worker for the backend (code completion, documentation lookups, code linters, and so on...).