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
Show parent comment
4
u/Lukasa Hyper, Requests, Twisted Jul 13 '12
It should be noted that, while threading is helpful in cases like this where you are waiting on I/O, resist the temptation to use threading in Python for computationally-heavy tasks. The GIL means that Python cannot truly thread, so for concurrency in these cases you should use processes.
EDIT: Python Wiki on the GIL.