Fredrik Lundh wrote: > did you write that yourself, or did you find it in some book or article? This is the example from programming python 2nd book, I use this just for learning