Emile> Couldn't you always coerce it? Emile> str('hello') Emile> str(123) Yes, I could, but the problem arises quite rarely. It seems to me that checking the type is going to generally be faster than always coercing. -- Skip Montanaro (skip at pobox.com) http://www.mojam.com/ http://www.musi-cal.com/