Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In python you are recommended to use

   if __name__ == '__main__':
      sys.exit (main (sys.argv))
and not put any code that is executed at the top-level. Otherwise its also executed when you import the file.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: