[SciPy-user] Is numpy's argsort lying about its numpy.int32 types?

Stefan van der Walt stefan@sun.ac...
Thu Apr 19 04:40:56 CDT 2007


On Wed, Apr 18, 2007 at 10:00:06PM -0600, Travis Oliphant wrote:
> try:
> 
> if isinstance(x, (int, integer))
> 
> integer is the super-class of all c-like integer types.

Is issubdtype(x,int) also a safe bet?

Cheers
Stéfan


More information about the SciPy-user mailing list