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

Re: API documentation wanted (for Python in particular)

From: Paul Koning <pkoning_at_equallogic.com>
Date: 2006-03-13 01:31:11 CET

>>>>> "Daniel" == Daniel Berlin <dberlin@dberlin.org> writes:

 Daniel> On Fri, 2006-03-10 at 17:34 -0500, Paul Koning wrote:
>> Unfortunately, I want to do it in Python. And I can't find any
>> information at all about that. It looks like I have to create a
>> client_ctx object and put a log_msg_func2 into that, which means I
>> have to create that function. But what is the function signature
>> in Python? That's where I lost it before, and I still see no
>> answer.

 Daniel> The python API is simply a wrapping of the C one.

Not true. The client_copy function doesn't have the first argument,
for example. On really careful reading that makes sense, since it
seems to be an output argument.

 Daniel> Thus, the docs are the same, as are the signatures.

 Daniel> However you'd do it in C is usually exactly how you'd do it
 Daniel> in python.

When the two languages match, yes, it seems that way. But, for
example, the log_msg_func returns a string via a char ** argument, and
Python doesn't have any such thing. So it has to be something
different in Python.

Expecting people to read cryptic .h files AND even more cryptic SWIG
files is really not very nice at all.

      paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 13 01:32:38 2006

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

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