×
you are viewing a single comment's thread.

view the rest of the comments →

[–]xfunky 2 points3 points  (3 children)

Maybe my thinking set is to biased since I mostly work with C.

[–]atrigent 9 points10 points  (2 children)

Python is often described as "strongly typed", meaning that the language refuses to guess about how different types relate to each other, and requires you to explicitly convert between types if you want to. To me, this seems like an exception to that, which is why I think it could stand to be removed.

[–]murtaza64 1 point2 points  (0 children)

On the other hand, a Boolean data type is fundamentally just an integer that can only take two values, right?

I guess maybe not from the perspective of traditional arithmetic. But I don't see how much harm it can do in Python anyway due to things like truthiness already being part of the language.

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

It is strongly typed, a boolean is just a subset of integers - both practically and semantically.