Peter Maas wrote: > def isNaN(x): > return (x == 0) and (x == 1) This works here. Do you have an idea what the rationale behind this behaviour (i. e. any number == nan) is? Peter