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

Re: Two problems w/ subversion

From: Karl Fogel <kfogel_at_collab.net>
Date: 2001-07-11 00:14:34 CEST

Thanks for the summary, Trent.

Some history here:

Subversion does require Python 2.0 for a reason: there's some code in
the test suite that uses a feature that wasn't available in 1.5.2. I
frankly don't remember exactly what the issue was, I just remember
that Mike Sussman or Ben discovered that something didn't work with
pre-2.0 Pythons, did a little research, and found out that we'd made
use of a feature new in 2.0. In other words, 2.0 turned out to be
backward-compatible but not forward-compatible with 1.5.2... as is
usually the case with languages, I suppose.

SOLUTION:

I doubt it's worth it to make the test suite run with 1.5.2 and 2.0,
since the 2.x series will probably be widespread fairly soon.

However, since some OS's are apparently installing Python 2.0 as
"python2", if we can make Subversion check for "python2" during the
configure-time search for a useable Python, and then substitute
"python2" in the appropriate places if it finds it, then things should
work correctly for more people.

Any volunteers, preferably someone with a box that has both Pythons
installed?

-K

Trent Mick <trentm@ActiveState.com> writes:
> The differences between the two are not *so* large (Unicode support was added
> after Python 1.5.2 but I don't think that is an issue here yet). However,
> some syntactic conveniences provided in Python 2.0 are so nice that they are
> widespread. For example,
> - string methods:
> Before you had to do this:
> import string
> print string.split("hello there buddy", " ")
> Now you can do this:
> s = "hello there buddy"
> s.split(" ")
> - augmented assignment: i.e. +=,-=,*=,etc.
>
> c.f. http://amk.ca/python/2.0/
>
>
> Trent
>
> --
> Trent Mick
> TrentM@ActiveState.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:33 2006

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.