<p>I guess I over-estimated Python's compiler, indeed it gives no warnings for using an expression statement like that, and just discards the boolean result of the comparison (or in interactive interpreter, prints 'False').</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/issues/1005#issuecomment-213849462">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyBPL7Vs3-U4EvV1QKSgrtbmaYwRks5p6p7dgaJpZM4IOQFY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1005#issuecomment-213849462"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>