Hello,<div><br></div><div>I'm relatively new to Python.  I come from C/C++ so I love the flexibility but I am slightly irked by the lack of compilation time checking.</div><div><br></div><div>I've got two questions</div>

<div>1) Are there any tools that do an analysis of code and attempt to catch potential issues such as undefined variables, etc?  I use xdebug in php for this purpose and it's a life saver.  Currently for Python I use module test cases and simulate situations but this doesn't catch everything and on a larger scale of development becomes difficult.</div>

<div><br></div><div>2) Is there a way to error when comparing variables of different types?  I was up late last night coding and caused a few bugs with the below code, which turns out to compare a type<str> to a type<int>.  I know good programming I should know what my variable types are, but it would be even better if I could always abide by a rule of using <_ (or something) which would spit an exception when comparing non-equal types/instances.</div>

<div><br></div><div><div>    rows = pamss.conn.fetchRows(results)</div><div>    count = rows[0]['cases']    // should be int(rows[0]['cases'])</div><div>    </div><div>    return count < MAX_CONCURRENT_IVR</div>

</div><div><br></div><div>thanks!</div><div>Lucas</div>