check if object is number

Michael Spencer mahs at telcopartners.com
Sat Feb 12 19:01:26 EST 2005


Steven Bethard wrote:
> Michael Spencer wrote:
> 
>> Steven Bethard wrote:
>>
>>> Peter Hansen wrote:
>>>
>>>> Of course, most of the other definitions of "is a number" that
>>>> have been posted may likewise fail (defined as not doing what the
>>>> OP would have wanted, in this case) with a numarray arange.
>>
>>
>> How about explicitly calling an adapter in your function, e.g.?
> 
> 
> 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
:-)

Michael




More information about the Python-list mailing list