If they're int32 I think when being converted to Python objects they'll be Python int's, not longs, which is reasonable, but I have no idea if that's guaranteed.

More in general, isinstance is very often preferred because it plays nicely with subclasses (unless you specifically don't want that behaviour).