Tag python

Quick introduction to RabbitMQ and Celery

I like to code in Python. I also like the concept of asynchronous workers to build loosely coupled applications. Luckily, RabbitMQ and Celery can help me do exactly that. This post is based on a very nice YouTube video by…

Using the Python debugger

A few days ago I found out that using the Python debugger is so easy, I can’t believe I haven’t used it before. Import the module: import pdb Set a breakpoint somewhere in your code: def some_function(self, x, y, z):…

Python: inverse of zip

So you have a list of tuples, created with the zip built-in function in Python. Like this: z = [(1, ‘a’), (2, ‘b’), (3, ‘c’)] And you want to reverse zip, to get these two lists: x = [1, 2,…