From dd7c0a7f3d16a3dcffd41c755a1256c0910df8a8 Mon Sep 17 00:00:00 2001 From: Stefan Seefeld Date: Thu, 26 Jul 2007 16:11:18 +0000 Subject: [PATCH] Fix ticket #1115. [SVN r38289] --- doc/v2/exec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/v2/exec.html b/doc/v2/exec.html index eb843e49..83d2c9b8 100644 --- a/doc/v2/exec.html +++ b/doc/v2/exec.html @@ -127,7 +127,7 @@ void greet() // Define greet function in Python. object result = exec( - "def greet(self): \n" + "def greet(): \n" " return 'Hello from Python!' \n", global, global); @@ -144,7 +144,7 @@ void greet() we could also store it in an a file...
-def greet(self):
+def greet():
    return 'Hello from Python!'
 
... and execute that instead.