[Python-ideas] A proliferation of (un-)Pythonically programmatic pragmas
Chris Barker
chris.barker at noaa.gov
Thu Nov 16 14:03:42 EST 2017
On Tue, Nov 14, 2017 at 6:14 PM, Steven D'Aprano <steve at pearwood.info>
wrote:
> > and then, even if you wanted to put it on the previous line, you would't
> > have the line-length issue:
> >
> > # flake8: disable=unused-import mypy: alias=pathlib2.Path coverage:
> > ignore=when>py2.7
>
> And the irony is that this shows exactly why it is still a problem. Code
> gets emailed, and lines get wrapped, breaking the too-long line.
>
that wrapped a 85 char line (probably to 72) -- lots of folks have set
their line length limit to 90+ these days, so I"m not sure we'll evr be
safe...
but whatever -- multiple line pragmas are fine, too -- I'm hoping putting
this much crap in your code will be rare :-)
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20171116/75754f9b/attachment.html>
More information about the Python-ideas
mailing list