projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7941552
)
use correct function in example
author
Fred Drake
<fdrake@acm.org>
Wed, 15 Feb 2006 06:55:57 +0000
(06:55 +0000)
committer
Fred Drake
<fdrake@acm.org>
Wed, 15 Feb 2006 06:55:57 +0000
(06:55 +0000)
Doc/ext/run-func.c
patch
|
blob
|
history
diff --git
a/Doc/ext/run-func.c
b/Doc/ext/run-func.c
index ff742907955327017ce1f3b2be074a1be848b41f..5a7df0d98056bc371aaaf4e4fdadf616527803e9 100644
(file)
--- a/
Doc/ext/run-func.c
+++ b/
Doc/ext/run-func.c
@@
-20,7
+20,7
@@
main(int argc, char *argv[])
Py_DECREF(pName);
if (pModule != NULL) {
- pFunc = Py
Dict_GetItem
String(pModule, argv[2]);
+ pFunc = Py
Object_GetAttr
String(pModule, argv[2]);
/* pFunc is a new reference */
if (pFunc && PyCallable_Check(pFunc)) {