Hi!
It is obvious, that we will have to let Python 2.x to go one day. Now the developers have been working on Pywikipedia 2 for a long time, and are looking forward to release it. But what then? How long will itt work?
In the past weeks I was dealing with Python very much, and I have ideas on 2 vs. 3. I tried to guess the reason not to use Python 3. As far as I see, the main problem is with the big quantity of u"..."s. But I they can probably be converted py the 2to3 module. So what is the main reason to keep 2.x?
I think the question here is: * how mature is py3? * how many experiences do we have with it?
greetings
Am 06.10.2010 17:57, schrieb Bináris:
Hi!
It is obvious, that we will have to let Python 2.x to go one day. Now the developers have been working on Pywikipedia 2 for a long time, and are looking forward to release it. But what then? How long will itt work?
In the past weeks I was dealing with Python very much, and I have ideas on 2 vs. 3. I tried to guess the reason not to use Python 3. As far as I see, the main problem is with the big quantity of u"..."s. But I they can probably be converted py the 2to3 module. So what is the main reason to keep 2.x?
-- Bináris
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Have you read http://wiki.python.org/moin/Python2orPython3 ?
On Fri, Oct 8, 2010 at 02:35, Dr. Trigon dr.trigon@surfeu.ch wrote:
I think the question here is:
- how mature is py3?
- how many experiences do we have with it?
greetings
Am 06.10.2010 17:57, schrieb Bináris:
Hi!
It is obvious, that we will have to let Python 2.x to go one day. Now the developers have been working on Pywikipedia 2 for a long time, and are looking forward to release it. But what then? How long will itt work?
In the past weeks I was dealing with Python very much, and I have ideas on 2 vs. 3. I tried to guess the reason not to use Python 3. As far as I see, the main problem is with the big quantity of u"..."s. But I they can probably be converted py the 2to3 module. So what is the main reason to keep 2.x?
-- Bináris
Thanks a lot for this link! Interessting document!
I just decided to let the choice be done form me by my OS developper (f13 -> redhat) and the toolserver staff... ;))
Greetings
Am 08.10.2010 08:43, schrieb Jeremy Baron:
Have you read http://wiki.python.org/moin/Python2orPython3 ?
On Fri, Oct 8, 2010 at 02:35, Dr. Trigondr.trigon@surfeu.ch wrote:
I think the question here is:
- how mature is py3?
- how many experiences do we have with it?
greetings
Am 06.10.2010 17:57, schrieb Bináris:
Hi!
It is obvious, that we will have to let Python 2.x to go one day. Now the developers have been working on Pywikipedia 2 for a long time, and are looking forward to release it. But what then? How long will itt work?
In the past weeks I was dealing with Python very much, and I have ideas on 2 vs. 3. I tried to guess the reason not to use Python 3. As far as I see, the main problem is with the big quantity of u"..."s. But I they can probably be converted py the 2to3 module. So what is the main reason to keep 2.x?
-- Bináris
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Indeed an other problem. I heared from other bot owners they got py2.4 (!) with the server.
----- Original Nachricht ---- Von: "Dr. Trigon" dr.trigon@surfeu.ch An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 10.10.2010 22:20 Betreff: Re: [Pywikipedia-l] Why not Python 3?
Thanks a lot for this link! Interessting document!
I just decided to let the choice be done form me by my OS developper (f13 -> redhat) and the toolserver staff... ;))
Greetings
Am 08.10.2010 08:43, schrieb Jeremy Baron:
Have you read http://wiki.python.org/moin/Python2orPython3 ?
On Fri, Oct 8, 2010 at 02:35, Dr. Trigondr.trigon@surfeu.ch wrote:
I think the question here is:
- how mature is py3?
- how many experiences do we have with it?
greetings
Am 06.10.2010 17:57, schrieb Bináris:
Hi!
It is obvious, that we will have to let Python 2.x to go one day. Now the developers have been working on Pywikipedia 2 for a long time, and are looking forward to release it. But what then? How long will itt
work?
In the past weeks I was dealing with Python very much, and I have ideas on 2 vs. 3. I tried to guess the reason not to use Python 3. As far as I see, the main problem is with the big quantity of u"..."s. But I they can probably be converted py the 2to3 module. So what is the main reason to keep 2.x?
-- Bináris
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
We would lost our backward compatibility for our scrips. There are some bot owner running py 2.4 and I really would be glad if we could deny our support for this version. First let's merge to the rewrite branch based on 2.5 and let the old stuff behind us. I guess this will be done next year ;)
xqt
----- Original Nachricht ---- Von: Bináris wikiposta@gmail.com An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 06.10.2010 17:57 Betreff: [Pywikipedia-l] Why not Python 3?
Hi!
It is obvious, that we will have to let Python 2.x to go one day. Now the developers have been working on Pywikipedia 2 for a long time, and are looking forward to release it. But what then? How long will itt work?
In the past weeks I was dealing with Python very much, and I have ideas on 2 vs. 3. I tried to guess the reason not to use Python 3. As far as I see, the main problem is with the big quantity of u"..."s. But I they can probably be converted py the 2to3 module. So what is the main reason to keep 2.x?
-- Bináris
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
2010/10/8 Jeremy Baron jeremy@tuxmachine.com Have you read http://wiki.python.org/moin/Python2orPython3 ?
Yes, I have. My question is: does Pywikibot use any of the still unported library modules?
2010/10/8 info@gno.de
We would lost our backward compatibility for our scrips. There are some bot owner running py 2.4 and I really would be glad if we could deny our support for this version. First let's merge to the rewrite branch based on 2.5 and let the old stuff behind us. I guess this will be done next year ;)
We WILL lose the backward compatibility. This was Guido's decision, not ours. The only question is when. I know you have worked with rewrite branch very much and it is tiring to maintain two branches collaterally and everyone is looking forward to release Pywiki2.0. Thats OK, and many thanks for your work. I also understand the sad guys with an old version of Python. But there will be more and more sad users who would like to use Py3.x, and must keep the old version and make tricks to choose between versions. Are we facing towards the future or __future__? :-)
The guys at python.org say that 2.7 will have an extended support time, but they don't say what this means. For me, pywikibot is the only reason to use 2.x and i would feel more freedom with saying good-bye. Nobody speaks about the lifetime of 2.5 and 2.6
As 2.7 has now a final release, and developers are deeling with 3.2, my idea is that one day (which is not too far in an ideal case) we release the final Pywikibot 2.0 and from that time it will only have bugfix support. The new developments would be under Pywikibot 3.0, and if someone feels like, he/she could backport them to 2.0. The Python version for final Pywiki 2 may be argued, it may be 2.5 or 2.7 (I think this is not too big difference in code). Since the development of Pywiki 3 has not begun yet, it may use at least Python 3.2 (stable version in January 2011).
What are the incompatibilities? Let's make a list. Many syntaxes used by the current version of Pywiki may be backported to 2.5 if. *The greatest problem is print vs. print(), and the many-many u""s in Unicode text. I think this can be handled by the 2to3 tool of Python. But Python 2.5 also understands the syntax print(). (What about 2.4?) *Some modules are use in a different way, e. g. urllib. I can imagine alternative imports either with if sys.version... or a try/else construction. This would lead to a more complicated code but it would work under 2.5 as well as under 3.x *If there are any raw_inputs, they must be changed to input. Are there many? What else?
Python 3 has also a 3to2 tool. That means, developments under 3.x can be backported easily.
I don't say we have to do this before Christmas. :-) But let's think about it.
Bináris
Inline answers, please look below...
Am 17.10.2010 09:39, schrieb Bináris:
2010/10/8 Jeremy Baron <jeremy@tuxmachine.com mailto:jeremy@tuxmachine.com> Have you read http://wiki.python.org/moin/Python2orPython3 ?
Yes, I have. My question is: does Pywikibot use any of the still unported library modules?
2010/10/8 <info@gno.de mailto:info@gno.de>
We would lost our backward compatibility for our scrips. There are some bot owner running py 2.4 and I really would be glad if we could deny our support for this version. First let's merge to the rewrite branch based on 2.5 and let the old stuff behind us. I guess this will be done next year ;)
We WILL lose the backward compatibility. This was Guido's decision, not ours. The only question is when. I know you have worked with rewrite branch very much and it is tiring to maintain two branches collaterally and everyone is looking forward to release Pywiki2.0. Thats OK, and many thanks for your work. I also understand the sad guys with an old version of Python. But there will be more and more sad users who would like to use Py3.x, and must keep the old version and make tricks to choose between versions. Are we facing towards the future or __future__? :-)
The guys at python.org http://python.org say that 2.7 will have an extended support time, but they don't say what this means. For me, pywikibot is the only reason to use 2.x and i would feel more freedom with saying good-bye. Nobody speaks about the lifetime of 2.5 and 2.6
As 2.7 has now a final release, and developers are deeling with 3.2, my idea is that one day (which is not too far in an ideal case) we release the final Pywikibot 2.0 and from that time it will only have bugfix support. The new developments would be under Pywikibot 3.0, and if someone feels like, he/she could backport them to 2.0. The Python version for final Pywiki 2 may be argued, it may be 2.5 or 2.7 (I think this is not too big difference in code). Since the development of Pywiki 3 has not begun yet, it may use at least Python 3.2 (stable version in January 2011).
Personally I like this idea very much! Some day a 'feature close' has to be done and from then in the given version only bug fixes are made and a clear specification (which bot revision number works with which python version) has to be made. Feature request can only be done for the release in development (or may be the actual release). And the actual development version uses an actual python version (may be not the brand new ones, but a recent). Other big software projects do also handle their development process in this way. Imagine the very new linux (or windows) versions running on very, very old hardware.... would be nice - but nobody supports it!
What are the incompatibilities? Let's make a list. Many syntaxes used by the current version of Pywiki may be backported to 2.5 if. *The greatest problem is print vs. print(), and the many-many u""s in Unicode text. I think this can be handled by the 2to3 tool of Python. But Python 2.5 also understands the syntax print(). (What about 2.4?) *Some modules are use in a different way, e. g. urllib. I can imagine alternative imports either with if sys.version... or a try/else construction. This would lead to a more complicated code but it would work under 2.5 as well as under 3.x *If there are any raw_inputs, they must be changed to input. Are there many? What else?
Python 3 has also a 3to2 tool. That means, developments under 3.x can be backported easily.
I don't say we have to do this before Christmas. :-) But let's think about it.
Bináris
Greetings DrTrigon
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org