[Python-checkins] r42378 - python/branches/release24-maint/Doc/ext/run-func.c

fred.drake python-checkins at python.org
Wed Feb 15 07:56:35 CET 2006


Author: fred.drake
Date: Wed Feb 15 07:56:35 2006
New Revision: 42378

Modified:
   python/branches/release24-maint/Doc/ext/run-func.c
Log:
use correct function in example (backport of trunk revision 42377)

Modified: python/branches/release24-maint/Doc/ext/run-func.c
==============================================================================
--- python/branches/release24-maint/Doc/ext/run-func.c	(original)
+++ python/branches/release24-maint/Doc/ext/run-func.c	Wed Feb 15 07:56:35 2006
@@ -20,7 +20,7 @@
     Py_DECREF(pName);
 
     if (pModule != NULL) {
-        pFunc = PyDict_GetItemString(pModule, argv[2]);
+        pFunc = PyObject_GetAttrString(pModule, argv[2]);
         /* pFunc is a new reference */
 
         if (pFunc && PyCallable_Check(pFunc)) {


More information about the Python-checkins mailing list