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

Usually you would do it in your main function, or a code path starting from there. Executing code with non-local side effects during import is generally frowned upon. Maybe it's fine for a project-local module that won't be shared, but it's a bad habit and can make it had to track down.


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

Search: