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
1
u/f0rkbomb Jul 13 '12 edited Jul 13 '12
per the discussion here, i added threading!
check it out, it's much faster
also incorporated some of the other suggestions here:
replaced tabs with spaces
replaced the CHARS string with the string constants
used the
__main__conceptmade rand_string() a flippin sweet one-liner!
made the try: statement slightly more granular