You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@lyra.org> on 2002/10/20 23:47:10 UTC

Re: svn commit: rev 3385 - trunk trunk/subversion/bindings/swig trunk/subversion/bindings/swig/python

On Thu, Oct 17, 2002 at 11:11:39AM -0500, cmpilato@tigris.org wrote:
>...
> +++ trunk/subversion/bindings/swig/python/fstest.py	Thu Oct 17 11:11:38 2002
> @@ -3,7 +3,7 @@
>  
>  import sys
>  sys.path.insert(0, './build/lib.linux-i686-2.2')
> -from svn import fs, _util
> +from svn import fs, _util, util
>  
>  def run(db_path):
>    _util.apr_initialize()

If you import 'util' wrapper, then drop the _util. All the functions from
_util are exposed by the util wrapper.

Cheers,
-g

-- 
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

Re: svn commit: rev 3385 - trunk trunk/subversion/bindings/swig trunk/subversion/bindings/swig/python

Posted by Greg Stein <gs...@lyra.org>.
On Sun, Oct 20, 2002 at 09:20:38PM -0300, Gustavo Niemeyer wrote:
> > In that case, what would you think about us adding a few *very simple*
> > files -- repos.py, client.py, delta.py -- that wrap _repos, _client,
> > and _delta?  I find it terribly confusing trying to remember which
> > module to use, with or without the leading underscore.

Yah, that would be quite fine.

> This brings up an interesting issue I'd like to understand. Why not
> letting SWIG generate its own proxies? It does a quite good job at it.
> Also, it's possible to include extra code in proxies even using the
> default proxies.

Because I've never looked into it... that's all. I don't know what the proxy
code looks like, and I don't know how to integrate ours with it. IOW, I
haven't had time to read the docs.

Of course, this doesn't block on *me* ... if somebody has patches, then
great.

Cheers,
-g

-- 
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

Re: svn commit: rev 3385 - trunk trunk/subversion/bindings/swig trunk/subversion/bindings/swig/python

Posted by Gustavo Niemeyer <ni...@conectiva.com>.
> In that case, what would you think about us adding a few *very simple*
> files -- repos.py, client.py, delta.py -- that wrap _repos, _client,
> and _delta?  I find it terribly confusing trying to remember which
> module to use, with or without the leading underscore.

This brings up an interesting issue I'd like to understand. Why not
letting SWIG generate its own proxies? It does a quite good job at it.
Also, it's possible to include extra code in proxies even using the
default proxies.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 3385 - trunk trunk/subversion/bindings/swig trunk/subversion/bindings/swig/python

Posted by cm...@collab.net.
Greg Stein <gs...@lyra.org> writes:

> On Thu, Oct 17, 2002 at 11:11:39AM -0500, cmpilato@tigris.org wrote:
> >...
> > +++ trunk/subversion/bindings/swig/python/fstest.py	Thu Oct 17 11:11:38 2002
> > @@ -3,7 +3,7 @@
> >  
> >  import sys
> >  sys.path.insert(0, './build/lib.linux-i686-2.2')
> > -from svn import fs, _util
> > +from svn import fs, _util, util
> >  
> >  def run(db_path):
> >    _util.apr_initialize()
> 
> If you import 'util' wrapper, then drop the _util. All the functions from
> _util are exposed by the util wrapper.

Hm.  I was not aware of this.  Cool.

In that case, what would you think about us adding a few *very simple*
files -- repos.py, client.py, delta.py -- that wrap _repos, _client,
and _delta?  I find it terribly confusing trying to remember which
module to use, with or without the leading underscore.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org