It has no __iter__ method either. I guess 'next' is just a historical accident. Should be easy enough to wrap it in your own class though and resolve this ? Regards, Fuzzy http://www.voidspace.org.uk/python