In the invalid escape sequences thread Umar brought up an important example in this post. There it is pointed out that IDEs respect escape characters appearing in docstrings. So this is a concrete example of a tool relying on the fact that docstrings are python objects, string literals.
2 Likes