
23 Jul
2007
23 Jul
'07
5:04 p.m.
On Mon, Jul 23, 2007 at 03:29:40PM +0200, Philippe Vaucher wrote:
// Define greet function in Python. object result = exec( "def greet(self): \n" " return 'Hello from Python!' \n", global, global);
This is a doc bug, greet(self) should be greet(), since it's a regular function, not a method in a class. I'm fairly sure that this has been reported, but I can't find any ticket for it. If you had caught the exception in python, it would have been something along the lines of: TypeError: greet() takes exactly 1 argument (0 given) -- Lars Viklund ------------------- To make it is hell. To fail is divine.