Why is there no PyInt_AsInt() ?

vincent wehren vincent at visualtrans.de
Mon Apr 5 02:16:24 EDT 2004


Jon Perez wrote:
> ...and instead down-cast the result of PyInt_AsLong() when
> the PyObject was an integer in the first place??
Yes, but a Python integer is "not the same" as a C integer. Python 
integers are implemented using a C long.

Vincent Wehren



More information about the Python-list mailing list