Re: [python-win32] inspect.getsource fails

2007-06-11 Thread Mark Hammond
does exist (eg, for tracebacks etc) Cheers, Mark. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Marc-AndrĂ© Belzile Sent: Saturday, 9 June 2007 5:26 AM To: [email protected] Subject: [python-win32] inspect.getsource fails Hi, I get a

[python-win32] inspect.getsource fails

2007-06-08 Thread Marc-André Belzile
Hi, I get an IO error when executing some code based on the inspect module: import inspect def FunctionTest(): x = 1 y = 2 return x+1 stringFunction = inspect.getsource(FunctionTest) print stringFunction # ERROR : Traceback (most recent call last): # File "