String to int newbie question

sik0fewl xxdigitalhellxx at hotmail.com
Mon Mar 24 16:24:54 CET 2003


>>0027 == 027 == 27
> 
> 
> No, 027 == 23.  But it is true that int('0027'), int('027'), and
> int('27') are all equal.

More clearly,

int('0027') == int('027') == int('27') == 27
0027 == 027 == 23

-- 
Ryan





More information about the Python-list mailing list