check if object is number

Steven Bethard steven.bethard at gmail.com
Sat Feb 12 18:37:11 EST 2005


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



More information about the Python-list mailing list