[Python-checkins] r42377 - python/trunk/Doc/ext/run-func.c

fred.drake python-checkins at python.org
Wed Feb 15 07:55:58 CET 2006


Author: fred.drake
Date: Wed Feb 15 07:55:57 2006
New Revision: 42377
Modified:
 python/trunk/Doc/ext/run-func.c
Log:
use correct function in example
Modified: python/trunk/Doc/ext/run-func.c
==============================================================================
--- python/trunk/Doc/ext/run-func.c	(original)
+++ python/trunk/Doc/ext/run-func.c	Wed Feb 15 07:55:57 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

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