StoryNote
Log in
|
Sign up
Are there any instances where I wouldn't want to use a 'if __name__ == "__main__":' check, and allow a method to run on import?
by
/u/BobbyTables829
in
/r/learnpython
Read on Reddit
Upvotes:
19
Favorite this post:
Mark as read:
Your rating:
--
10
9
8
7
6
5
4
3
2
1
0
Add this post to a custom list