Category Archives: Python

Simple colored output in python 3 using termcolor

Visually scanning long lines of output can cause the eye to lose track of the line you are interested in. Wouldn’t it be nice if you could simulate lineprinter paper? In this article, I’ll show you how with termcolor. It’s … Continue reading

Posted in Python | Tagged , , | 1 Comment

map_concurrently: simple multithreading in Python

I had been playing with multithreading in Haskell recently, and I was impressed to see that it had a function mapConcurrently, which allowed you to run functions in parallel. I thought I would implement this functionality in Python. Multithreading is … Continue reading

Posted in Python | Tagged | 1 Comment