[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: Trent Mick <trentm_at_ActiveState.com>
Date: 2001-07-10 21:43:05 CEST

On Tue, Jul 10, 2001 at 11:56:27AM -0700, Brian Behlendorf wrote:
> Are there incompatible differences between python 1 and 2 that mandate the
> difference? Are they significant, or small cleanups like the perl 4 vs 5
> difference?

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