Skip to content

Commit

Permalink
Merge pull request #159 from karlsebal/patch-1
Browse files Browse the repository at this point in the history
Update python_c_extension.rst
  • Loading branch information
yasoob committed Jan 12, 2018
2 parents 50d933c + 84cb657 commit e7cf039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_c_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ file, it's pretty straight forward.
long length = PyList_Size(listObj);
//iterate over all the elements
int i, sum =0;
long i, sum =0;
for(i = 0; i < length; i++){
//get an element out of the list - the element is also a python objects
PyObject* temp = PyList_GetItem(listObj, i);
Expand Down

0 comments on commit e7cf039

Please sign in to comment.