From: Finn B. <bc...@us...> - 2001-02-23 20:25:59
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv20020 Modified Files: PyReflectedFunction.java Log Message: __call__(): An optimization, no need to do super__ lookup for super__ methods. Index: PyReflectedFunction.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyReflectedFunction.java,v retrieving revision 2.7 retrieving revision 2.8 diff -C2 -r2.7 -r2.8 *** PyReflectedFunction.java 2001/02/02 09:28:37 2.7 --- PyReflectedFunction.java 2001/02/23 20:27:05 2.8 *************** *** 142,146 **** // Check to see if we should be using a super__ method instead // This is probably a bit inefficient... ! if (self == null && cself != null && cself instanceof PyProxy) { PyInstance iself = ((PyProxy)cself)._getPyInstance(); if (argslist[0].declaringClass != iself.__class__.proxyClass) { --- 142,147 ---- // Check to see if we should be using a super__ method instead // This is probably a bit inefficient... ! if (self == null && cself != null && cself instanceof PyProxy && ! !__name__.startsWith("super__")) { PyInstance iself = ((PyProxy)cself)._getPyInstance(); if (argslist[0].declaringClass != iself.__class__.proxyClass) { |