[Python-checkins] python/dist/src/Objects funcobject.c, 2.67, 2.67.2.1

mwh at users.sourceforge.net mwh at users.sourceforge.net
Thu Feb 17 11:43:15 CET 2005


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5089/Objects
Modified Files:
 Tag: release24-maint
	funcobject.c 
Log Message:
Backport: 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.67.2.1
diff -u -d -r2.67 -r2.67.2.1
--- funcobject.c	28 Oct 2004 16:32:00 -0000	2.67
+++ funcobject.c	17 Feb 2005 10:43:12 -0000	2.67.2.1
@@ -262,8 +262,6 @@
 static PyObject *
 func_get_name(PyFunctionObject *op)
 {
-	if (restricted())
-		return NULL;
 	Py_INCREF(op->func_name);
 	return op->func_name;
 }


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /