tag:blogger.com,1999:blog-8797006816811118829.post6922824094282976155..comments2008-08-04T13:25:59.384-04:00Comments on for post in leo.blog():: Jython: How to Instantiate Classes Written in Pyth...Leo Soto M.http://www.blogger.com/profile/16108418309169741841noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8797006816811118829.post-7405841725862240872008-08-04T13:25:00.000-04:002008-08-04T13:25:00.000-04:00Hmm, but I see that we have no invoke() shortcut f...Hmm, but I see that we have no invoke() shortcut for 3 args (as opposed to the 3-args __call__). Maybe it is just a matter of adding it?<BR/><BR/>BTW, the javadoc of invoke() sort of over-specify it, by saying that it calls a method on a PyObject. By looking at the implementation it will also work on my case, where I need to instantiate a class which is an attribute of its module. <BR/><BR/>Or maybe this over-specification is intentional, in order to allow future optimizations?Leo Soto M.http://www.blogger.com/profile/16108418309169741841noreply@blogger.comtag:blogger.com,1999:blog-8797006816811118829.post-69503335151971222822008-08-03T17:02:00.000-04:002008-08-03T17:02:00.000-04:00BTW, apparently .invoke() is preferable to .__geta...BTW, apparently .invoke() is preferable to .__getattr__().__call__(). See pjenvey's fix for my commit <A>r5070</A>. (Since I actually used your weblog entry to figure out how to do this, I figured it would make sense to post a correction here. :-)Nicholashttp://www.blogger.com/profile/00987731789565363095noreply@blogger.com