(note: I'm new to Python)
I had a typo in a function call, and the project built, but crashed at runtime, when hitting the function call with the typo.
Is this normal?! Shouldn't the build have failed?! Am I setup correctly?!
I'm using Eclipse on Linux Centos.
Eclipse does detect other errors (indentation, undefined variables (i.e. if foo:, with foo never declared before causes a build error, etc.)
here is how my stuff looks like:
def foo(self):
pass
def bar(self):
foe()
-> foe
instead of foo
-> does NOT generate a compilation error, but (of course) crashes at run-time
I can understand that Python sometimes does not know the types a variables before run-time, but can't it detect it when I make a call to a function that does not even exist within the class??!!
I hope there is very wrong with my setup, otherwise, I'm afraid I will miss Java, C, and all my others statically typed languages ;))))