News for hackers. Stuff that matters.
Re:Format Python Code Using YAPF by closed on Sunday February 09, 2020 @09:25AM (#22282230)
> The reason a formatter exists is to make all codebases look consistent

I'm not how this is related to not having any knobs to tune. Aren't there many ways for code to be consistent with pep8? Isn't advocating for only one version of pep8-consistent code in essence an attempt to supercede pep8?

Re:Format Python Code Using YAPF by dewey on Sunday February 09, 2020 @12:30PM (#22283204)
They are most likely talking about the codebase being consistent within a company / project. Not consistent with pep8.

If there are no knobs to turn (like in gofmt) everyone just has the same settings and you don't have to make sure everyone sets the knobs to the same values.

Re:Format Python Code Using YAPF by zzzeek on Sunday February 09, 2020 @01:11PM (#22283412)
Black formats to a subset of pep8 so I guess it's an attempt to "subcede" pep8.
Re:Format Python Code Using YAPF by closed on Sunday February 09, 2020 @06:36PM (#22285111)
I think that thing X superceding thing Y is equivalent to thing Y subceding to thing X.

In this case, if black becomes the standard for defining appropriate style then it is superceding pep8 as the standard for style (many styles consistent with pep8 are not black outputs, so if black's style becomes mandatory, it is a ruling against these previously accepted alternatives).