Python 3

Russel Winder russel at russel.org.uk
Wed Jun 23 07:24:55 BST 2010


Martin,

On Wed, 2010-06-23 at 16:11 +1000, Martin Pool wrote:
> On 23 June 2010 15:52, Russel Winder <russel at russel.org.uk> wrote:
[ . . . ]
> > print foo , bar  ->  print ( foo , bar )
> 
> Those two statements do different things in 2.x so no, the second is
> not ok as a coding guideline for a single codebase.

Indeed.  I was thinking of transformation rules rather than common code.
For common code, you might have to do something like:

print ( str ( foo ) + ' ' + str ( bar ) )


[ . . . ]
> One of the major points of this thread and previous ones is that we
> are not prepared to give up 2.4 support yet.  I do realize that it
> would be easier to support 3.x if we dropped 2.4 but we're not going
> there yet.

As far as I am aware you have to go to 2.6 and drop all pre-2.6 idioms
to have any chance of 2to3 and 3to2 being useful.  With 2.4 and 2.5
factors in the equation, then looking at 3 is for the future --
certainly this is the view in the SCons team.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100623/03f73bd3/attachment.pgp 


More information about the bazaar mailing list