4 ms·
Auto formatters support paragraphs, but they don't support I'm going to give this paragraph 2 blank lines because it's particularly important/complicated/blah.
by solarmist 5y ago
Auto formatters support paragraphs, but they don't support I'm going to give this paragraph 2 blank lines because it's particularly important/complicated/blah.
- tayo42 5y agoOh interesting thanks! I couldn't find it in the docs before
- solarmist 5y agoYeah, I don't think it's mentioned because it feels like supporting spaces between words, I’d guess. Just so fundamental a functionality it's assumed.
- mumblemumble 5y agoTypographic standards typically don't, either. Fortunately, there's more than one way to convey emphasis. Also, single functions that are long enough to contain something analogous to paragraphs are arguably not Pythonic in the first place.
- solarmist 5y agoFor paragraph I just mean a series of 1 or more lines separated by a blank line vs no blank lines.
- Mawr 5y agoAre there two blank lines between these parts of the code for a reason or did the person who wrote this code make a mistake? If that part of the code is special for whatever reason, add a comment saying why.