I\'m reading bottle.py source code. It\'s a web framework, with only 3000+ lines python code. So cool.
I found some code like this:
class ServerAdapter(o
It is apparenly related to the coverage.py:
Coverage.py is a tool for measuring code coverage of Python programs. It monitors your program, noting which parts of the code have been executed, then analyzes the source to identify code that could have been executed but was not.
That exact # pragma: no cover
is the hint that the part of code should be ignored by the tool -- see Excluding code from coverage .
For Python, it's simply a comment. It might be an annotation targeted at some external tool, which reads and analyzes Python code, similar, for example, to doctest's #doctest: +ELLIPSIS
annotations or PyLint's # pylint: disable=W0613
style annotations.