Quote:
Originally Posted by Crow
That's the issue: I'm not converting it. I'd understand the behavior if I'd throw the attribute through int() beforehand, but I'm not doing that.
|
Equality between a string and a number implicitly coerces the string to a number and then performs the equality check. It's the usual way for an equality check to work in a dynamically-typed language.