Message5815

Author zyasoft
Recipients babelmania, pjenvey, tomw2, zyasoft
Date 2010-06-16.14:50:45
SpamBayes Score 0.008619849
Marked as misclassified No
Message-id <1276699846.28.0.857402984358.issue1605@psf.upfronthosting.co.za>
In-reply-to
Content
Fixed by r7066.

tomw2 should adopt a similar solution to what was done with PyComplex#__tojava__ - there doesn't seem to be a reasonable way to indicate a preference without a rewrite of our reflection support. Therefore, modifying or adding __tojava__ seems like the better solution:

    // Special case __tojava__ for bug 1605, since we broke it with our support for faux floats.

    @Override
    public Object __tojava__(Class<?> c) {
        if (c.isInstance(this)) {
            return this;
        }
        return Py.NoConversion;
    }
History
Date User Action Args
2010-06-16 14:50:46zyasoftsetmessageid: <1276699846.28.0.857402984358.issue1605@psf.upfronthosting.co.za>
2010-06-16 14:50:46zyasoftsetrecipients: + zyasoft, pjenvey, babelmania, tomw2
2010-06-16 14:50:46zyasoftlinkissue1605 messages
2010-06-16 14:50:45zyasoftcreate