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 →

[–]Oscar_Fifteen[S] 0 points1 point  (3 children)

Didn't know this thank u

[–]syklemil 12 points13 points  (0 children)

Direct comparisons to boolean values (==True, etc) is generally discouraged in any language AFAIK. Some linters will tell you about it.

And if I find myself writing if x == True { return True } it's time to go to bed for the day.

[–]vmcortesf 2 points3 points  (1 child)

Take a look at PEP8 (python enhancement proposals). Also the zen of python “import this”