xAppSoftware Blog Blog


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...


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...


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...


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...


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...


warning: Setting locale failed. Raspbian [SOLVED]

The warning message in the title appears during the installation of packages (invoking Perl) and it’s due to missing locales being set not. The full message looks like the following one:

To fix...