Category Archives: Python

Assignement in Python with list.extend()

This is weird for me : d = [’foo’, ‘bar’, ‘ba’, ‘c’] print d f = d f.extend(d) print d give me the result -*- mode: compilation; default-directory: “/tmp/” -*- Compilation started at Mon Jul 31 16:49:41 python “/tmp/a.py” [‘foo’, … Continue reading

Posted in Python | Leave a comment

Jabber/Asterisk and Gajim notification

At work we are using Asterisk and Jabber and i am using Gajim as my client. I did a quick patch to have a notification on my desktop when someone call me and i get my big headphones (not that … Continue reading

Posted in Misc, Programming, Python | Leave a comment

Python 2.5 Beta

I have been looking at the What’s new of Python 2.5. There is some cool features inside it : Conditional Expressions: This stuff basically allow to do standard C idiom (that we found in every kind of derivative language) like … Continue reading

Posted in Python | 2 Comments