Hacker News new | ask | show | jobs
by 1718627440 272 days ago
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.