From: Finn B. <bc...@us...> - 2001-03-04 17:53:07
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv24284 Modified Files: PyMethod.java Log Message: Disallow setting func-attr on all methods. This match a recent change in CPython-2.1b1 Index: PyMethod.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyMethod.java,v retrieving revision 2.12 retrieving revision 2.13 diff -C2 -r2.12 -r2.13 *** PyMethod.java 2001/02/25 16:51:51 2.12 --- PyMethod.java 2001/03/04 17:54:38 2.13 *************** *** 66,75 **** } - public void __setattr__(String name, PyObject value) { - if (im_self != null) - throw Py.TypeError("cannot set attributes through bound methods"); - im_func.__setattr__(name, value); - } - public void __delattr__(String name) { im_func.__delattr__(name); --- 66,69 ---- |