http://qs321.pair.com?node_id=11124425


in reply to 02.5 == 25 - WTF?

I expect that trying print 010.5, "\n", which prints 85 might be a clue about what's happening. It seems like octal representation is always interpreted as an int, so you have int(010).5. In which case the dot is the concatenation operator.