Category: Tower of Babel

1

Python 3 queues – FIFO and LIFO

Python provides multi-producer, multi-consumer, thread safe queues. These queues are available in standard libraries so you can use them without installing any other library. For Python 3 you have to import queue while for...

0

A Python 3 quine

Last post of this year is a quine in python 3. If you are interested in quines, you can find more ino in the post Quines: a new Hello World. The quine I want...

0

Python decorators in the real world

In the post “Python decorators for dummies (me)” I’ve explained something about the python decorators. In the post there are theorical examples, in this post I want to show some real world use cases...

0

Python decorators for dummies (me)

A decorator is the name used for a software design pattern. Decorators dynamically alter the functionality of a function, method, or class without having to directly use subclasses or change the source code of...

0

Switch case statement in python

The swictch case construct is a construct used in a lot of languages to substitute long if then else statements. A switch statement allows a variable to be tested for equality against a list...