En Wed, 23 Dec 2009 04:24:04 -0300, swapnil
escribió:
I am trying to retrieve the value of the exception (the message part)
raised in python, in C.
But if I run (actually import) the script from within a C code
(embedding python in C), I am able to get the exception object but not
the value.
I am trying to retrieve the value of the exception (the message part)
raised in python, in C.
Running the below script,
import shutil
fd= open("testfile","w")
fd.write("some junk")
fd.close()
shutil.copy("testfile","testfile")
will generate an exception like this,
Traceback (most recent call la