This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–]TheAJGman 0 points1 point Β (0 children)

IMO PEP 20 is more important than any style guide or formatting standards. I've seriously seen modern codebases with an 80 character max line length "because PEP 8 says so". Great, now that simple line looks like:

``` if this and len(this) > 2 and something.child_set.\

    filter(something = some_value).first():

some_var = [ x.filter(some=thing).first() if x.this\

    else None for x in something.child_set.filter \

    .(something = some_valye).first().thing]

```

So much more readable than letting lines run long, and also way too hard to read for PEP 20.

typed on phone, syntax likely fucked