logo       

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

lang.jython.user

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

Great, that does the trick nicely. Thanks.

-----Original Message-----
From: jython-users-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:jython-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jeff
Emanuel
Sent: 23 May 2005 15:59
To: "Alex Pollitt"@frii.com
Cc: Jython Usesr
Subject: Re: [Jython-users] To stupid to live??? Problems with coercing
non-numeric types.


Define a __tojava__ method in your class.

class StringValue:
def __init__(self,s):
self.s=s
def __tojava__(self,cls):
return self.s.__tojava__(cls)



-------------------------------------------------------
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_id=7412&alloc_id=16344&op=click
_______________________________________________
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