|
Re: To stupid to live??? Problems with coercing non-numeric types.: msg#00053lang.jython.user
The approach Jack suggested seems to distort the fact that we're dealing with an object, not a string. Even though it's an object that wraps a string, it's still not a string. However, if you implemented an __str__ method, it should be possible to convert it to a string or java.lang.String object. How about: x.myMethod(y, str(z)) or from java.lang import String s = String(str(z)) x.myMethod(y, s) My guess is that it's too much of a leap to go from a Jython object that wraps a string to a Java object the wraps a string. With a little help, like that shown above, you should be able to bridge the gap. Regards, Todd Moyer Alex Pollitt wrote: Hi all, ------------------------------------------------------- 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: To stupid to live??? Problems with coercing non-numeric types., Alex Pollitt |
|---|---|
| Next by Date: | Re: To stupid to live??? Problems with coercing non-numeric types., Jeff Emanuel |
| Previous by Thread: | Re: To stupid to live??? Problems with coercing non-numeric types., Jack Nutting |
| Next by Thread: | Re: To stupid to live??? Problems with coercing non-numeric types., Jeff Emanuel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |