newbie question

Nan nan.li.g at gmail.com
Wed Nov 26 14:11:53 EST 2008


Hello,
   I just started to use Python. I wrote the following code and
expected 'main' would be called.

def main():
  print "hello"

main

But I was wrong. I have to use 'main()' to invoke main. The python
interpreter does not give any warnings for the above code. Is there
any way/tool to easily detect this kind of errors ?

Thanks !



More information about the Python-list mailing list