<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 2:05 AM INADA Naoki <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I think long URL in comment or docstring is good reason to ignore<br>
line length limit.<br></blockquote><div><br></div><div>Yep, that's what we do in the yapf autoformatter. There's good reason too, source viewers and editors linkify URLs, if you break them across strings to fit within a line length limit, you get a broken partial url. It also makes searching a codebase for references to specific identifiers much more difficult if you've broken up their value at arbitrary points.</div><div><br></div><div>There are other examples for this such as allowing trailing line comments for pylint, type checkers, etc. to go beyond 80 columns.</div><div><br></div><div>See the Exceptions in <a href="https://google.github.io/styleguide/pyguide.html#32-line-length">https://google.github.io/styleguide/pyguide.html#32-line-length</a> for what make good practical examples.</div><div><br></div><div>I'm not convinced that codifying this in PEP-8 makes sense though unless we see this happening within the Python standard library code itself (the purpose of pep-8). PEP-8 is not trying to be a style guide for all Python users, just a stdlib style guide that happens to serve a base from which to build upon.</div><div><br></div><div>-gps</div></div></div></div>