[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: English terminology / explanation needed

From: Arild Fines <arild.fines_at_broadpark.no>
Date: 2004-05-25 22:30:44 CEST

Ben Collins-Sussman wrote:
>> include/svn_error_codes.h:829
>> "Python exception has been set with the error"
>> what has really happened? Has a python exeption occured? Where's the
>> rest of the sentence? What kind of error?
> When the python-swig bindings throw a python exception, this needs to be
> converted into an svn_error_t in C. I think this is is just a generic
> error description that means: "the python bindings threw a python
> exception."
> But I agree: the grammar makes no sense to me here. Maybe cmpilato or
> someone with swig-py experience can explain the grammar. I don't
> understand what "set with the error" means.

I'd venture to guess that the message is an artifact of the Python C API for raising exceptions; they are all prefixed with PyErr_Set*

Python exceptions are set globally(in a thread-local way, I presume), and C/C++ code calling Python code needs to check whether an exception is set.

See http://docs.python.org/api/exceptionHandling.html

AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
IRC: irc://irc.freenode.net/ankhsvn
"Weaseling out of things is good. It's what separates us from the other
animals....except weasels." -- Homer Simpson 
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 25 22:31:10 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.