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

Re: Requiring Python 2.6 (was: Re: svn commit: r35458 - in branches/python-3-compatibility: . build subversion/bindings/swig subversion/tests/cmdline subversion/tests/cmdline/svntest tools/hook-scripts)

From: Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA_at_GMail.Com>
Date: Sat, 21 Mar 2009 20:13:32 +0100

2009-03-21 18:04:36 David James napisaƂ(a):
> On Sun, Jan 25, 2009 at 11:25 AM, Arfrever Frehtes Taifersar Arahesis
> <Arfrever.FTA_at_gmail.com> wrote:
> > On the 'python-3-compatibility' branch:
> > Require Python >=2.6.
> > (Actually Python <2.6 wasn't supported earlier.)
>
> Hi Arfrever,
>
> Is it possible to support Python 3.0 without breaking compatibility
> with Python 2.4?

It is rather hard, because Python 2.5 doesn't support some syntax changes
which were made in Python 3.

'except exception, variable:' => 'except exception as variable:'
https://svn.collab.net/viewvc/svn?view=revision&revision=35001

0123 => 0o123 or 0O123
https://svn.collab.net/viewvc/svn?view=revision&revision=35608

"bytes" => b"bytes"
http://docs.python.org/3.0/library/functions.html#bytes

Python 2.6 supports them.

-- 
Arfrever Frehtes Taifersar Arahesis

Received on 2009-03-21 20:15:33 CET

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