Message134848
| Author |
amaury.forgeotdarc |
| Recipients |
alex_lai, amaury.forgeotdarc, ezio.melotti |
| Date |
2011年04月30日.09:25:11 |
| SpamBayes Score |
0.002196934 |
| Marked as misclassified |
No |
| Message-id |
<1304155512.18.0.543657025493.issue11960@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年04月30日 09:25:12 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, ezio.melotti, alex_lai |
| 2011年04月30日 09:25:12 | amaury.forgeotdarc | set | messageid: <1304155512.18.0.543657025493.issue11960@psf.upfronthosting.co.za> |
| 2011年04月30日 09:25:11 | amaury.forgeotdarc | link | issue11960 messages |
| 2011年04月30日 09:25:11 | amaury.forgeotdarc | create |
|