[Bf-python] internal Python object conversion question

Ken Hughes khughes at pacific.edu
Wed Jun 15 21:51:38 CEST 2005


Just saw something in a BPython module similar to this:

float f = (float) PyFloat_AsDouble ( PySequence_GetItem( pyOb, 0 ) );

My understanding of PySequence_GetItem() is that it returns a new
reference.  Doesn't this code leave that PyObject floating around
until termination?

Ken



More information about the Bf-python mailing list