Hi,
Robert Kern wrote:
> I think the problem is that _kp_29 becomes a unicode string u'*'. The
> function that raises the exception explicitly checks for exactly str.
>
> if (!PyString_Check(item)) {
>
> PyErr_SetString(PyExc_TypeError,
> "Item in ``from list'' not a
> string");
>
> If I manually go into the importas.c source (after adding my failing line)
> and
> set is_unicode to 0 in the string_tab, then it can import.
Ok, then it's a Py2-only issue. Py3 requires a unicode string here.
Setting the "is_identifier" bit for the specific string should do the trick.
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev