Message4336
Originally I was thinking we'd use the Py.py2int/float methods to do it
as that's where the current conversions generally happen. Looking at
them again, though, they are pretty lame:
public static int py2int(PyObject o, String msg) {
if (o instanceof PyInteger) {
return ((PyInteger) o).getValue();
}
Object obj = o.__tojava__(Integer.TYPE);
PyInteger.__tojava__ would already do this for us |
|
Date |
User |
Action |
Args |
2009-03-22 21:22:04 | pjenvey | set | messageid: <1237756924.83.0.962155124835.issue1198@psf.upfronthosting.co.za> |
2009-03-22 21:22:04 | pjenvey | set | recipients:
+ pjenvey, zyasoft |
2009-03-22 21:22:04 | pjenvey | link | issue1198 messages |
2009-03-22 21:22:04 | pjenvey | create | |
|