Programming
Inside Python subprocess communication


Sometimes, it's really hard to understand what happens inside a function or even a whole module of Python's Standard library. For example, the subprocess module contains a very tricky Popep class. I tried to use the the module to communicate with a MATLAB subprocess shell (e.g. send MATLAB commands to subprocess and read the output). Unfortunately I failed and was just able to pass a MATLAB script via command-line arguments. Yet, I learnt much about Popen.communicate() method and I'd like to share this knowledge with you.

Comments [2]
Python classes: Dynamic properties


Python never stops surprising me. While doing my master IT project, I was looking for a way to add dynamic properties to classes (we're speaking of new-style classes of course!). I did a little research and here are the results:

Comments [2]
Beginner's guide to creating a GNOME applet with Python (Part II)


It's been a while since I wrote the first [1] part of this guide. I'm happy to introduce you the second part of the tutorial. This part continues the story about applet-only techniques. Even if you're skilled in PyGTK, you're adviced to read this part.

Comments [9]
Big and Little endianness quest


Sometimes the bugs in programs do not depend on a programmer. For example, when a programmer expects a certain result from a built-in function, that would be the last place to check for bugs. But sometimes weird stuff happens, and it also happened to me.

Comments [0]
RSS.py - RSS 2.0 builder


The rss.py is a small open-source library written in Python 3 that helps generating RSS 2.0 feeds in easy and convenient way.

Comments [0]