Message3430
As seen on http://pylonshq.com/pasties/934 , the expsed method for
PyArray#array_fromunicode wasn't passing verification. The problem is a
missing casting operation on the generated code (decompiled with jad):
public PyObject __call__(PyObject pyobject)
{
((PyArray)self).array_fromunicode(pyobject);
return Py.None;
}
[The array_fromunicode method receives a PyUnicode, not a PyObject]
By casual looking at MethodExposer#generateCall looks like we are not
supporting arguments of other types than PyObject, String and primitives
on exposed method.
We should either document this behaviour, or fix it, by adding the
appropriate type-checking to the code generated by
MethodExposer#generateCall (it should NOT throw ClassCastExceptions!). |
|
Date |
User |
Action |
Args |
2008-08-18 02:36:20 | leosoto | set | recipients:
+ leosoto |
2008-08-18 02:36:20 | leosoto | set | messageid: <1219026980.11.0.591392533086.issue1105@psf.upfronthosting.co.za> |
2008-08-18 02:36:20 | leosoto | link | issue1105 messages |
2008-08-18 02:36:19 | leosoto | create | |
|