python string comparison unexpected results : <pre><code>&gt;&gt;&gt; '1.2.3'&gt;'1.1.5'
True
&gt;&gt;&gt; '1.1.3'&gt;'1.1.5'
False
&gt;&gt;&gt; '1.1.5'&gt;'1.1.5'
False
&gt;&gt;&gt; '1.1.7'&gt;'1.1.5'
True
&gt;&gt;&gt; '1.1.9'&gt;'1.1.5'
True
&gt;&gt;&gt; '1.1.10'&gt;'1.1.5'
False
&gt;&gt;&gt; '1.2'&gt;'1.1.5'
True
&gt;&gt;&gt; '1.2.9'&gt;'1.1.5'
True
&gt;&gt;&gt; '1.2.10'&gt;'1.1.5'
True
</code></pre>

<p>Hi,</p>

<p>I am trying to compare two strings as shown above. First of all, I am surprised that python comparing strings of numbers. firstly I thought that it will just compare lengths, but for different values it's giving exact values and I am astonished. But, for '1.1.10' > '1.1.5' it's false...  i don't know why.... can anyone help...</p>
