Tomi Valkeinen wrote:
> I didn't read your code, but I got the same error from my code and the 
> reason was that one of the arguments to the method being called was of 
> wrong type. The error message didn't help much finding that bug =). 
> Perhaps you have the same problem.

I've run into this a few times too. The exception should be a little more 
informative about what's wrong with your N arguments (or get a different 
exception, indicating the issue a little more clearly.)

I usually get caught out when I pass a float instead of an integer. I'm 
wondering whether it is viable for IronPython to check whether converting the 
parameter(s) to the intended type (eg. float -> int) is something that might 
work, and if so use that. It could be that I'm just lazy but this is how C# 
works.

-- 
Jonathan

When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
                 -- Rinzai, ninth century Zen master
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to