On Nov 12, 1:28 am, "lallous" wrote:
> Hello,
>
> I am a little confused on how to check if a python variable is an integer or
> not.
>
> Sometimes PyInt_Check() fails and PyLong_Check() succeeds.
I assume you are using Python 2.x. There are two integer types: (1)
PyInt which stores small values
Hello,
I am a little confused on how to check if a python variable is an integer or
not.
Sometimes PyInt_Check() fails and PyLong_Check() succeeds.
How to properly check for integer values?
OTOH, I tried PyNumber_Check() and:
(1) The doc says: Returns 1 if the object o provides numeric prot