From: <zy...@us...> - 2009-05-08 02:34:50
|
Revision: 6316 http://jython.svn.sourceforge.net/jython/?rev=6316&view=rev Author: zyasoft Date: 2009-05-08 02:34:43 +0000 (Fri, 08 May 2009) Log Message: ----------- Support PyCode#call(PyFrame) for backwards compatibility. However, this should ordinarily not be used in most calls, since it requires looking up the ThreadState. However, it will be (somewhat) more efficient in usage by code like pycimport. Modified Paths: -------------- trunk/jython/src/org/python/core/PyCode.java Modified: trunk/jython/src/org/python/core/PyCode.java =================================================================== --- trunk/jython/src/org/python/core/PyCode.java 2009-05-07 05:57:41 UTC (rev 6315) +++ trunk/jython/src/org/python/core/PyCode.java 2009-05-08 02:34:43 UTC (rev 6316) @@ -10,6 +10,10 @@ abstract public PyObject call(ThreadState state, PyFrame frame, PyObject closure); + public PyObject call(PyFrame frame) { + return call(Py.getThreadState(), frame); + } + public PyObject call(ThreadState state, PyFrame frame) { return call(state, frame, null); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |