other implementations use `sputils.isintlike` which has slightly different semantics. For consistency, it should apply here.