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

Re: svn commit: r24909 - branches/ctypes-python-bindings/csvn/core

From: David Glasser <glasser_at_mit.edu>
Date: 2007-05-03 13:59:48 CEST

On 5/3/07, Malcolm Rowe <malcolm-svn-dev@farside.org.uk> wrote:
> On Wed, May 02, 2007 at 09:52:57PM -0700, glasser@tigris.org wrote:
> > ==============================================================================
> > --- branches/ctypes-python-bindings/csvn/core/__init__.py (original)
> > +++ branches/ctypes-python-bindings/csvn/core/__init__.py Wed May 2 21:52:57 2007
> > @@ -6,6 +6,9 @@
> > from csvn.ext.listmixin import ListMixin
> > import sys
> >
> > +TRUE=1
> > +FALSE=0
> > +
>
> I'm curious: how do these differ from Python (2.5's) True and False?
> Are we expecting that people will use TRUE and FALSE in their code, or
> are they just an implementation detail?

These simulate Subversion's svn_boolean_t values TRUE and FALSE; David
used them in User.setup_auth_baton to call svn_cmd_setup_auth_baton.

I don't know ctypes well enough to know if there's a way to make it
automatically convert between Python booleans and svn_boolean_t.

--dave

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 3 14:00:02 2007

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