logo       

RE: To stupid to live??? Problems with coercing non-numeric types.: msg#00052

lang.jython.user

Subject: RE: To stupid to live??? Problems with coercing non-numeric types.

Thanks for the suggestion, but unfortunately this doesn't seem to make
any difference. I still get exactly the same error.

Anyone got any other ideas?

-----Original Message-----
From: jython-users-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:jython-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jack
Nutting
Sent: 23 May 2005 13:53
To: jython-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Jython-users] To stupid to live??? Problems with coercing
non-numeric types.

On 5/23/05, Alex Pollitt <Alex.Pollitt@xxxxxxxxxxxxxxxxxx> wrote:
> So all of the following work fine with Z:
>
>
> print z #calls z.__str__()
> print repr(z) #calls z.__repr__()
> print "z is " + z + "." #calls z.__coerce__()
>
> But the x.myMethod(y, z) does not work, and does not call
> z.__coerce__() either.

Just a guess:

What if you do self.__type__ = 'String' or similar during
initialization?

--
// jack


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=ick
_______________________________________________
Jython-users mailing list
Jython-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jython-users


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise