View Single Post
  #1042  
Old 05-01-2011, 07:40 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Crow View Post
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.
Reply With Quote