¡@

Home 

python Programming Glossary: pyint_fromlong

Weird Integer Cache inside Python 2.6

http://stackoverflow.com/questions/15171695/weird-integer-cache-inside-python-2-6

co ... PyEval_EvalCodeEx Then I added some debug code in PyInt_FromLong and before after PyAST_FromNode and executed a test.py a 257..

How do you extend python with C++?

http://stackoverflow.com/questions/2847617/how-do-you-extend-python-with-c

ll i j return NULL res i j flpX Do something here return PyInt_FromLong res Function of no arguments returning new Flp object static.. PyList_GetItem list 0 Py_INCREF item PyList_SetItem list 1 PyInt_FromLong 0L PyObject_Print item stdout 0 printf n Py_DECREF item Py_INCREF.. ll i j return NULL res i j flpX Do something here return PyInt_FromLong res Function of no arguments returning new Flp object static..

Create and call python function from string via C API

http://stackoverflow.com/questions/3789881/create-and-call-python-function-from-string-via-c-api

just the number 4 in this case pArgs PyTuple_New 1 pValue PyInt_FromLong 4 PyTuple_SetItem pArgs 0 pValue Call my function passing it.. pModule doStuff pArgs PyTuple_New 1 pValue PyInt_FromLong 4 PyTuple_SetItem pArgs 0 pValue pValue PyObject_CallObject..

What happens behind the scenes when python adds small ints?

http://stackoverflow.com/questions/6101379/what-happens-behind-the-scenes-when-python-adds-small-ints

x 2 140570345270512 id 600 140570345270576 Source PyObject PyInt_FromLong long ival Return value New reference. Create a new integer object..

Why is math.factorial much slower in Python 2.x than 3.x?

http://stackoverflow.com/questions/9815252/why-is-math-factorial-much-slower-in-python-2-x-than-3-x

factorial algorithm 1121 for i 1 i x i 1122 iobj PyObject PyInt_FromLong i 1123 if iobj NULL 1124 goto error 1125 newresult PyNumber_Multiply..