This idea by jdveiga seems like a good one. It doesn't require any change in Python, although conceivably an informational PEP could make some specific convention a recommendation.
The thing is, SQL isn't THAT special. I use SQL a lot myself, so would benefit from such support. But there are LOTS of mini-languages that I might work with as strings in Python. Pandas queries; Numexpr transformations; XPath queries; HTML; Regex; MongoDB queries; JSON query (which I think is mostly the same as MongoDB); LDAP query; GraphQL; and lots of others.
I certainly don't want to make new string types for every one of these. And I don't even want special syntax to allow an arbitrary string style. In concept, something like an f-string declaration might be possible:
query = f"{SELECT * FROM table|@sql}"
I'm not sure if that off-the-cuff "suggestion" would be possible in Python's parser, but just to show the vague idea. But a comment convention feels much lighter here.
--
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons. Intellectual property is
to the 21st century what the slave trade was to the 16th.