unsigned int nltk_get_size_from_list(PyObject* list)
{
int result = 0;
+ PRET_VM(!list, 0, "Input parameter [list] is NULL!");
if (PyList_Check(list))
{
unsigned int nltk_get_size_from_tuple(PyObject* tuple)
{
int result = 0;
+ PRET_VM(!tuple, 0, "Input parameter [tuple] is NULL!");
if (PyTuple_Check(tuple))
{
PyObject* nltk_get_element_from_list_by_index(PyObject* list, int index)
{
PyObject* element;
+ PRET_VM(!list, NULL, "Input parameter [list] is NULL!");
if (PyList_Check(list))
{
if (index > (PyList_Size(list)-1) || (index < 0 ))