Sybren Stuvel <sybrenUSE at YOURthirdtower.com.imagination> wrote: ... > if data[x][y] > 0 or datadict.has_key(key): > > This might even make things fit on one line again ;-) Particularly if you code it idiomatically: if data[x][y] > 0 or key in datadict: Alex