python/dist/src/Objects funcobject.c,2.67,2.68
Update of /cvsroot/python/python/dist/src/Objects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3732/Objects Modified Files: funcobject.c Log Message: Fix [ 1124295 ] Function's __name__ no longer accessible in restricted mode which I introduced with a bit of mindless copy-paste when making __name__ writable. You can't assign to __name__ in restricted mode, which I'm going to pretend was intentional :) Index: funcobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/funcobject.c,v retrieving revision 2.67 retrieving revision 2.68 diff -u -d -r2.67 -r2.68 --- funcobject.c 28 Oct 2004 16:32:00 -0000 2.67 +++ funcobject.c 17 Feb 2005 10:37:21 -0000 2.68 @@ -262,8 +262,6 @@ static PyObject * func_get_name(PyFunctionObject *op) { - if (restricted()) - return NULL; Py_INCREF(op->func_name); return op->func_name; }
participants (1)
-
mwh@users.sourceforge.net