Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

The issue is actually in numpy. In numpy/f2py/src/fortranobject.c, function 
array_from_pyobj(), there is::

        sprintf(mess,"failed to initialize intent(inout|inplace|cache) array"
                " -- input must be array but got %s",
                PyString_AsString(PyObject_Str(PyObject_Type(obj)))
                );

(In numpy headers, PyString_AsString is aliased to PyBytes_AsString.)
Besides the reference leaks, this function will fail when given the unicode 
string returned by PyObject_Str(), and sprintf receives the null string...
Please report this to numpy.

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11960>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to