who still uses python2.4

4 views
Skip to first unread message

Ondrej Certik

unread,
Jun 26, 2009, 9:29:27 PM6/26/09
to sympy
Hi,

I just wanted to make a quick survey how many sympy users still use python2.4?

Now even the stable version of Debian uses python2.5. Is there still a
major linux distribution that uses python2.4?

The real problem with python2.4 is that it doesn't support relative
imports and as such it's a realy pain to include libraries like
mpmath. Fredrik mentioned here

http://code.google.com/p/mpmath/issues/detail?id=138#c30

that he would like to reintroduce hierarchy of modules in mpmath,
which is really tedious to make it work inside sympy with python2.4.

With sympy itself, it's not a big problem to support python2.4, one
just needs to take care of things like "any()", "SKIP in doctest"
etc., so my plan is to support python2.4 at least one more year if
possible.

What do you think?

Ondrej

Ryan Krauss

unread,
Jun 26, 2009, 9:40:56 PM6/26/09
to sy...@googlegroups.com
I guess we can wait and see what the results of this survey are, but I think one more year is too long.  If it is creating difficulties for sympy, I think it can go.

Aaron S. Meurer

unread,
Jun 26, 2009, 9:47:41 PM6/26/09
to sy...@googlegroups.com
I am +1 for removing support for Python 2.4, if no one uses it.
Python 2.5 added quite a few language changes aside from just any()
and all() that could be useful [0], like the ternary operator and
better try syntax.

By the way, the latest version of Mac OS X (10.5, Leopard) comes with
at least Python 2.5, so you are good there [1]. I believe that the
previous version (10.4, Tiger) came with Python 2.4 or less, but 10.5
was released long enough ago that I think it is ok to break
compatibility there (10.6 is scheduled to ship in September!).

At any rate, Python 2.5 was released in 2006 [2], almost three years
ago, so any OS that doesn't support it yet should expect to break
compatibility with python applications and packages by now.

[0] - http://docs.python.org/whatsnew/2.5.html
[1] - http://www.apple.com/opensource/
[2] - http://www.python.org/dev/peps/pep-0356/

Aaron Meurer

Luke

unread,
Jun 27, 2009, 1:53:20 AM6/27/09
to sympy
I use 2.6 and have never used 2.4 since I started using python 2 years
ago. Breaking sympy compatibility with python 2.4 is ok by me. It
seems like the users of sympy are probably the type who can update
more frequently than once every 3 years, so it doesn't seem like too
much of an issue.

On Jun 26, 6:47 pm, "Aaron S. Meurer" <asmeu...@gmail.com> wrote:
> I am +1 for removing support for Python 2.4, if no one uses it.  
> Python 2.5 added quite a few language changes aside from just any()  
> and all() that could be useful [0], like the ternary operator and  
> better try syntax.
>
> By the way, the latest version of Mac OS X (10.5, Leopard) comes with  
> at least Python 2.5, so you are good there [1].  I believe that the  
> previous version (10.4, Tiger) came with Python 2.4 or less, but 10.5  
> was released long enough ago that I think it is ok to break  
> compatibility there (10.6 is scheduled to ship in September!).
>
> At any rate, Python 2.5 was released in 2006 [2], almost three years  
> ago, so any OS that doesn't support it yet should expect to break  
> compatibility with python applications and packages by now.
>
> [0] -http://docs.python.org/whatsnew/2.5.html
> [1] -http://www.apple.com/opensource/
> [2] -http://www.python.org/dev/peps/pep-0356/

Oyster

unread,
Jun 27, 2009, 1:57:03 AM6/27/09
to sympy
sorry, I use py2.4 since I have installed too many libs on it over
these years

Ryan Krauss

unread,
Jun 27, 2009, 8:50:28 AM6/27/09
to sy...@googlegroups.com
Oyster,

What platform are you on?  Are all your libs compatible with 2.5 or 2.6?  What would keep you from upgrading?

Ryan

Toon Verstraelen

unread,
Jun 28, 2009, 1:40:50 AM6/28/09
to sy...@googlegroups.com
Ondrej Certik wrote:
> What do you think?
>

For most home users, there is probably no problem to drop support for
2.4. I'm not sure about computing centra. Upgrading the entire OS of a
clusters is quite a job. On our university cluster, the default is
2.4.3, but 2.5.4 is available through 'module load python/2.5.4-...' I
think it is even OK to drop support for 2.4 right now.

cheers,
Toon

Fredrik Johansson

unread,
Jun 30, 2009, 10:16:42 AM6/30/09
to sy...@googlegroups.com
On Sat, Jun 27, 2009 at 3:29 AM, Ondrej Certik<ond...@certik.cz> wrote:
>
> Hi,
>
> I just wanted to make a quick survey how many sympy users still use python2.4?
>
> Now even the stable version of Debian uses python2.5. Is there still a
> major linux distribution that uses python2.4?
>
> The real problem with python2.4 is that it doesn't support relative
> imports and as such it's a realy pain to include libraries like
> mpmath.

The biggest problem with the imports in my opinion is not package
management, but 3.x compatibility. It would be fairly easy to support
both 2.x and 3.x in mpmath with the same codebase (and I would
strongly prefer to do this instead of providing two versions). The
only serious problem is that 3.x requires explicit relative imports
while 2.4 doesn't have them.

So right now the choice is between supporting 2.4 and supporting 3.x,
and probably supporting 2.4 is the right choice for a while longer.

Fredrik

Ondrej Certik

unread,
Jun 30, 2009, 11:46:41 AM6/30/09
to sy...@googlegroups.com

Cannot the 2to3 script fix that? I think it can, but maybe I am wrong.

Ondrej

Fredrik Johansson

unread,
Jun 30, 2009, 11:48:14 AM6/30/09
to sy...@googlegroups.com
On Tue, Jun 30, 2009 at 5:46 PM, Ondrej Certik<ond...@certik.cz> wrote:

> Cannot the 2to3 script fix that? I think it can, but maybe I am wrong.

Yep, but then there's the need for dual codebases or at least dual releases.

Fredrik

Ondrej Certik

unread,
Jun 30, 2009, 11:58:27 AM6/30/09
to sy...@googlegroups.com

Yes, 2 releases will be necessary.

In SymPy I plan to setup a buildbot, that automatically runs the 2to3
script and then run tests in python3 after every commit, and then when
the release comes, I just run the script myself and release the
tarball for python3 separately.

We definitely cannot have just one codebase for both 2.x and 3.x, for
example the metaclasses syntax has changed.

Ondrej

Ondrej Certik

unread,
Jul 7, 2009, 1:41:00 AM7/7/09
to sy...@googlegroups.com


To make a conclusion: we will support python2.4 for the foreseeable
future. When it becomes a real pain, we'll then drop the support.

Ondrej

Reply all
Reply to author
Forward
0 new messages