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

Re: client API not optimal

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-08-26 22:33:43 CEST

On Mon, Aug 26, 2002 at 01:30:30PM +0100, Barry Scott wrote:
> I agree that the learning curve to drive svn from python
> or C++ is far to steep.

The Python bindings (via SWIG) to SVN exactly mirros the SVN API. Thus, the
Python code is going to be no more easier or difficult than the C API

However, it is also important to note that it is easy to provide an
additional layer of Python code over the underlying, primitive API. For
example, see the Editor class in the svn.delta module. Or the run_app
function in svn.util.

Similar abstractions can easily be added to the FS, Repos, etc. Much like
you're adding abstractions using C++ classes, you can do the same with
Python. In fact, I expect this additional layering for all the SWIG
bindings (Python, Perl, Java, etc). Each language would create an additional
higher-level API in the style appropriate for that language.


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 26 22:29:16 2002

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.