You are viewing a single thread.
View all comments
1 point

People used to argue that Python was incredibly readable. Then I started seeing shit like this.

permalink
report
reply
1 point

I don’t know python, but it’s clear what that line does

permalink
report
parent
reply
2 points

I think that Python has a bit of a ‘Microsoft Word’ thing on the go. You know how your own docs are completely editable and print fine, but everyone else’s are a complete fucking disaster and pressing a single key will screw up the formatting of the whole document? Your own Python code is full of sensible idioms and pragmatic naming conventions, but everyone else’s was plainly written while on mushrooms.

permalink
report
parent
reply
2 points

I’d say this is pretty readable

permalink
report
parent
reply
1 point

It jams far too much on one line. Break it up. It’s a mistake I see a lot on Python.

permalink
report
parent
reply
1 point

but if you do it as a for loop it would be slower

permalink
report
parent
reply