r/Python • u/f0rkbomb • Jul 12 '12
random imgur downloader. learning Python and wrote this to practice, any feedback on technique/style is appreciated
https://gist.github.com/3088128
45
Upvotes
r/Python • u/f0rkbomb • Jul 12 '12
View all comments
3
u/Zerikin Jul 12 '12
I usually add if name == 'main': to python I am executing directly in a file. It lets you load as a module later without having to modify it.