Message4336

Author pjenvey
Recipients pjenvey, zyasoft
Date 2009-03-22.21:22:04
SpamBayes Score 0.00024486816
Marked as misclassified No
Message-id <1237756924.83.0.962155124835.issue1198@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-03-22 21:22:04pjenveysetmessageid: <1237756924.83.0.962155124835.issue1198@psf.upfronthosting.co.za>
2009-03-22 21:22:04pjenveysetrecipients: + pjenvey, zyasoft
2009-03-22 21:22:04pjenveylinkissue1198 messages
2009-03-22 21:22:04pjenveycreate