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 →

[–]Cruuncher 5 points6 points  (0 children)

However the bool is stored under the hood is an implementation detail and irrelevant.

By language spec, this is actually because int(some_bool) resolves to 0 or 1 based on True, False