Message8242

Author zyasoft
Recipients zyasoft
Date 2014-02-21.17:29:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393003781.57.0.165117437026.issue2115@psf.upfronthosting.co.za>
In-reply-to
Content
As seen in the socket-reboot project, it's necessary to wrap calls to bound methods with a function so that it can be directly used by single method interfaces, eg:

        def workaround_jython_bug_for_bound_methods(_):
            self._notify_selectors()

        future.addListener(workaround_jython_bug_for_bound_methods)

The likely solution is to add a PyMethod#__java__, taking in account being bound or not, comparable to PyFunction#__java__.
History
Date User Action Args
2014-02-21 17:29:41zyasoftsetrecipients: + zyasoft
2014-02-21 17:29:41zyasoftsetmessageid: <1393003781.57.0.165117437026.issue2115@psf.upfronthosting.co.za>
2014-02-21 17:29:41zyasoftlinkissue2115 messages
2014-02-21 17:29:40zyasoftcreate