Interpreter more strict

Posted by pacopepe on Stack Overflow See other posts from Stack Overflow or by pacopepe
Published on 2010-06-13T21:32:41Z Indexed on 2010/06/13 21:42 UTC
Read the original article Hit count: 117

Filed under:

Hi,

Today, i lost a lot of time fixing a stupid error in my code. Very simplified, the problem was this:

def f():
    return 2

2 == f

I forgot to write the parenthesis in the sentence, so I compared a pointer function with a number.

Ok, my question:

Is there any way to change the interpreter to be more stricted with the code? Show more warnings for example...

Thanks ^^

© Stack Overflow or respective owner

Related posts about python