[Python-ideas] A proliferation of (un-)Pythonically programmatic pragmas
gadgetsteve at live.co.uk
Thu Nov 16 15:49:10 EST 2017
On 16/11/2017 19:03, Chris Barker wrote:
> On Tue, Nov 14, 2017 at 6:14 PM, Steven D'Aprano <steve at pearwood.info
> <mailto: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
> but whatever -- multiple line pragmas are fine, too -- I'm hoping
> putting this much crap in your code will be rare :-)
> Christopher Barker, Ph.D.
Obviously the best way to avoid multiple warning suppressions to to fix
what is being warned about, unfortunately it is not always possible.
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.
This email has been checked for viruses by AVG.
More information about the Python-ideas