News for hackers. Stuff that matters.
Re:Why does `True == False is False` evaluate to False in Py... by shrimpx on Saturday May 02, 2020 @07:17AM (#23051069)
It’s really not dynamic vs untyped, but the extent to which the language design chooses to coerce a value into a given type instead of raising a runtime type error. Python is guilty of this too with its truthy values, e.g. `if []` β€” an empty list of type `list` is suddenly apparently inhabiting the bool type and is equivalent to False.

There are no comments on this comment yet.