News for hackers. Stuff that matters.
Re:YAPF – A formatter for Python files by morbo_yapf on Friday April 03, 2015 @02:06AM (#9314573)
The warning about data literals is just to warn people that what comes out of YAPF may not look like they desire. The problem is that formatting data literals is hard. Even harder than formatting executable code. This is because there are so many different styles that could be applied to them. There's no "one size fits all" solution.

Therefore, YAPF (and even clang-format) balk on them. They will handle them of course. But the result will almost certainly not look like what you want.

That's why we give you the ability to disable formatting for sections of code.

There are no comments on this comment yet.