check if object is number

Michael Spencer mahs at telcopartners.com
Thu Feb 17 13:26:02 EST 2005


Christos TZOTZIOY Georgiou wrote:
> On Sat, 12 Feb 2005 16:01:26 -0800, rumours say that Michael Spencer
> <mahs at telcopartners.com> might have written:
> 
> 
>>>Yup, that's basically what I'm doing right now.  The question was really 
>>>how to define that adapter function. =)
>>>
>>>Steve
>>
>>OK - then my entry is:
>>	assert obj+1 >= 1
>>:-)
> 
> 
> So -1 is not a number.
At least not a legal one for Steven's function as I understood it

Michael




More information about the Python-list mailing list