Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-28 Thread Christian Heimes
Eric Smith schrieb: > The only problem I see is that the __future__ import of unicode_literals > doesn't work in 3.0 yet. I'll look into fixing that. The __future__ import of unicode_literals was added to py3k 26 hours earlier: Author: christian.heimes Date: Wed Mar 26 23:34:47 2008 New Revisio

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-28 Thread Lennart Regebro
On Fri, Mar 28, 2008 at 5:33 AM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > For now, it's best to put this on the wiki. That will allow many > people to contribute. Yeah, but the code would be more practical in an svn. But some docs in the wiki would be a good idea. I'll see what I can do next w

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Neal Norwitz
On Thu, Mar 27, 2008 at 3:52 AM, Lennart Regebro <[EMAIL PROTECTED]> wrote: > On Thu, Mar 27, 2008 at 5:33 AM, Talin <[EMAIL PROTECTED]> wrote: > > -- A document describing the "common subset", and how to write programs > > in it. This doesn't have to be a complete standalone manual, just an >

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Eric Smith
Eric Smith wrote: > Greg Ewing wrote: >> Charles Merriam wrote: >>> How can I write the greatest common denominator of this code: >>> >>> print "Hello World!" # yes, that needs to be Unicode. >> Something like >> >>from __future__ import unicode_literals >>from py3k_compat import Print >>

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Eric Smith
Greg Ewing wrote: > Charles Merriam wrote: >> How can I write the greatest common denominator of this code: >> >> print "Hello World!" # yes, that needs to be Unicode. > > Something like > >from __future__ import unicode_literals >from py3k_compat import Print > >Print("Hello World!

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Greg Ewing
Charles Merriam wrote: > How can I write the greatest common denominator of this code: > > print "Hello World!" # yes, that needs to be Unicode. Something like from __future__ import unicode_literals from py3k_compat import Print Print("Hello World!") # yes, that indeed is Unicode. g

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Lennart Regebro
On Thu, Mar 27, 2008 at 5:33 AM, Talin <[EMAIL PROTECTED]> wrote: > -- A document describing the "common subset", and how to write programs > in it. This doesn't have to be a complete standalone manual, just an > addendum to the regular Python docs explaining what things to avoid and > how to g

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Christian Heimes
Charles Merriam schrieb: > On Wed, Mar 26, 2008 at 9:33 PM, Talin <[EMAIL PROTECTED]> wrote: > >> For new code, however, there is an alternative strategy that doesn't >> involve 2to3 at all, which is to write code in the "greatest common >> subset" of 2.6 and 3.0. >> >> As Lennart Regbro p

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Nick Coghlan
Charles Merriam wrote: > On Wed, Mar 26, 2008 at 9:33 PM, Talin <[EMAIL PROTECTED]> wrote: > ... >> For new code, however, there is an alternative strategy that doesn't >> involve 2to3 at all, which is to write code in the "greatest common >> subset" of 2.6 and 3.0. >> >> As Lennart Regbro poin

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Charles Merriam
On Wed, Mar 26, 2008 at 9:33 PM, Talin <[EMAIL PROTECTED]> wrote: ... > For new code, however, there is an alternative strategy that doesn't > involve 2to3 at all, which is to write code in the "greatest common > subset" of 2.6 and 3.0. > > As Lennart Regbro pointed out earlier, this common sub

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 27, 2008, at 2:09 AM, Martin v. Löwis wrote: >> For new code, however, there is an alternative strategy that doesn't >> involve 2to3 at all, which is to write code in the "greatest common >> subset" of 2.6 and 3.0. >> >> As Lennart Regbro pointe

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-26 Thread Talin
Martin v. Löwis wrote: >> For new code, however, there is an alternative strategy that doesn't >> involve 2to3 at all, which is to write code in the "greatest common >> subset" of 2.6 and 3.0. >> >> As Lennart Regbro pointed out earlier, this common subset is actually >> quite large (larger than

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-26 Thread Martin v. Löwis
> For new code, however, there is an alternative strategy that doesn't > involve 2to3 at all, which is to write code in the "greatest common > subset" of 2.6 and 3.0. > > As Lennart Regbro pointed out earlier, this common subset is actually > quite large (larger than Guido originally intended,

[Python-3000] Python 3.0 Porting Strategies

2008-03-26 Thread Talin
We had a short discussion about Python 3.0 porting during our bi-weekly Python meeting at Google, and it was suggested that I write up what was discussed. From reading the Python 3000 mailing list over the last several months, it is apparent that there are many different approaches to making t