5 ms·
Sweet! Thanks! I did not know that, and I've no problem with a terminal comma there. My point stands - I do not think those spaces are superfluous. Consider th
by eesmith 2y ago
Sweet! Thanks! I did not know that, and I've no problem with a terminal comma there.
My point stands - I do not think those spaces are superfluous. Consider the following:
a = 4
def foo(i: int):
return "A" * i
class Spam:
foo = 4
bar: int = 6
def eggs(self, n: int = 5):
return foo(i=n)
Why is it "i=n" instead of "i = n" when every other use of "=" has spaces?
For this one case of a short function with simple names, okay, I don't always use spaces.
But otherwise I think the lack of spaces makes it the code harder to read, and thus "uglier".
- tda 2y agoyou can discuss the spaces and lack there of here: https://stackoverflow.com/questions/8853063/pep-8-why-no-spaces-around-in-keyword-argument-or-a-default-parameter-value https://stackoverflow.com/questions/8853063/pep-8-why-no-spa... The rest of us just follow the PEP8 style guide and move on
- eesmith 2y agoThe question was 'What rules do you consider ugly?'. I think that rule is ugly. I explained why. If you don't like the thread, move on.