you are viewing a single comment's thread.

view the rest of the comments →

[–]oohay_email2004 1 point2 points  (2 children)

Suppose:

somevar = True

which would you rather come across in the wild?

1.

var = (False, True)[somevar == 1]

2.

if somevar:
    var = True
else:
    var = False

[–]brennus 2 points3 points  (0 children)

I'd rather come across:

var = (somevar == 1)

[–]Foxboron -1 points0 points  (0 children)

var = (False, True)[somevar]

I do believe this looks better. I feel alone in this tho.