Skip to content

Commit

Permalink
Merge pull request numpy#2923 from baeuml/swig-fix-python3
Browse files Browse the repository at this point in the history
fix numpy.i for python 3
  • Loading branch information
charris committed Jan 21, 2013
2 parents e548eed + 18bcac0 commit ce289ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/swig/numpy.i
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
if (PyDict_Check( py_obj)) return "dict" ;
if (PyList_Check( py_obj)) return "list" ;
if (PyTuple_Check( py_obj)) return "tuple" ;
if (PyFile_Check( py_obj)) return "file" ;
if (PyModule_Check( py_obj)) return "module" ;
%#if PY_MAJOR_VERSION < 3
if (PyFile_Check( py_obj)) return "file" ;
if (PyInstance_Check(py_obj)) return "instance" ;
%#endif

return "unkown type";
}
Expand Down

0 comments on commit ce289ab

Please sign in to comment.