Closed kpdyer closed 10 years ago
I couldn't get this to occur on any other platform. Also, unable to track down the root of this issue.
I solved the issue by manually getting and validating each input parameter. For example
PyObject *arg0 = PyTuple_GetItem(args, 0);
if (!PyString_Check(arg0)) {
PyErr_SetString(PyExc_RuntimeError, "First argument must be a string");
return 0;
}
const char* regex = PyString_AsString(arg0);
Our function
`fte.cDFA.DFA.__init__
takes a string and int as arguments. Both arguments are required. However, using the standard python pattern:results in
len
being0
andregex
does not contain the actual string passed as input.Environment: