3 ms·
I couldn't figure out if they have that dumb indentation rule. https://gist.github.com/radiosilence/6133713 https://gist.github.com/radiosilence/6133713 I mea
by antihero 13y ago
I couldn't figure out if they have that dumb indentation rule.
https://gist.github.com/radiosilence/6133713 https://gist.github.com/radiosilence/6133713
I mean how can anyone say that the former is better than the latter?
- gsnedders 13y agoEither is acceptable per PEP 8.
- antihero 13y agoOh, neat! I don't have to feel dirty now.
- mattdeboard 13y agoWhat? There's no proscription against either of those. However a little common sense would go a long way in your first example. Break at spaces/hyphens/other natural break points in strings. Also the + symbols aren't necessary. String continuation is implicit inside parentheses.
- bobisme 13y agoI always stick to 79 chars and stick to the latter method for indentation. I am completely happy with the readability of my code as a result. Thus, I'm not really happy with the new 99 char rule.
- tcdent 13y agoI don't think of it as a new limit at 99 chars, meaning you should switch, but that the 79 limit isn't a hard limit, just a guideline. If you have a line that would suffer under 79 chars, let it go a little long, but no farther than 99.