Monthly Archives: November 2009

Small Programming Challenge no. 5 – Generating a Permutation

I thought of this one quite a long time ago, and I believe that the idea behind it is pretty nice mathematically. I got the idea for it from Knuth’s “The Art of Computer Programming”. The challenge is simple: write … Continue reading

Posted in Challenges, computer science, Programming | Tagged , | 15 Comments

And now for something completely different

My friend Yuval whom you might already know from the comments here, apparently composed music for the Python Zen. It made me laugh today, and as it’s been a long day, I thought it’s worth sharing here. Especially as it … Continue reading

Posted in Humour, Python | Tagged , , , | Leave a comment

Leaky method references

After reading my last post regarding __del__, you should know that __del__ + reference cycle = leak. Let’s say that you do need to use __del__, so you decide to avoid reference cycles. You write your code in such a … Continue reading

Posted in Python | Tagged , , , , | Leave a comment