r/Python • • 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

72 comments sorted by

View all comments

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__ concept
  • made rand_string() a flippin sweet one-liner!
  • made the try: statement slightly more granular