
I generally break them up and then use "".join() as that is "most readable" IMHO. The same is true for SQL queries. On 2/25/19, Jonathan Fine <jfine2358@gmail.com> wrote:
On Mon, Feb 25, 2019 at 10:05 AM INADA Naoki <songofacandy@gmail.com> wrote:
I think long URL in comment or docstring is good reason to ignore line length limit.
A very good point. We can't banish long URLs from the Internet, because they violate PEP 8.
But I'm not sure about general long string literals.
I hope programmers would be sensible in their use of long string literals (as with their choice of variable names). However, I don't think this can be reliable machine checked, with the tools we presently have. Machines find it hard to determine programmer intent, except via a formal language.
-- Jonathan _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
-- With the simplicity of true nature, there shall be no desire. Without desire, one's original nature will be at peace. And the world will naturally be in accord with the right Way. Tao Te Ching