<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">From the docs[0]:<div><br></div><div>"Strings are compared lexicographically using the numeric equivalents (the result of the built-in function ord()) of their characters. Unicode and 8-bit strings are fully interoperable in this behavior."</div><div><br></div><div>[0] <a href="http://docs.python.org/2/reference/expressions.html#not-in">http://docs.python.org/2/reference/expressions.html#not-in</a><br><div><br></div><div><div><div>On 20.03.2013, at 14:33, franzferdinand <<a href="mailto:melo.dumoulin@hotmail.com">melo.dumoulin@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">"Monty" < "Python"<br></blockquote></blockquote></blockquote>True<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">"Z" < "a"<br></blockquote></blockquote></blockquote>True<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">"Monty" < "Montague"<br></blockquote></blockquote></blockquote><br>False<br>What's the rule about that? Is it the number of letters or what?<br>thanks<br>-- <br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br></div></div></body></html>