From: Finn B. <bc...@us...> - 2001-10-30 19:10:24
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv3242 Modified Files: PyBuiltinFunctionSet.java Log Message: Fix for "[ #462280 ] builtin method as a class variable". Don't rebind a already bound PyBuiltinFunctionSet. Index: PyBuiltinFunctionSet.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyBuiltinFunctionSet.java,v retrieving revision 2.12 retrieving revision 2.13 diff -C2 -d -r2.12 -r2.13 *** PyBuiltinFunctionSet.java 2001/10/28 17:13:43 2.12 --- PyBuiltinFunctionSet.java 2001/10/30 19:10:21 2.13 *************** *** 59,63 **** public PyObject _doget(PyObject container, PyObject wherefound) { ! if (isMethod) { // TBD: is there a better way? try { --- 59,65 ---- public PyObject _doget(PyObject container, PyObject wherefound) { ! // Eventually we may want to allow rebinding of builtins ! // when container is a subclass of __self__.__class__. ! if (isMethod && __self__ == Py.None) { // TBD: is there a better way? try { |