473,387 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

RELEASED Python 2.4 (final)

On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.4.

Python 2.4 is a final, stable release, and we can recommend that Python
users upgrade to this version.

Python 2.4 is the result of almost 18 month's worth of work on top
of Python 2.3 and represents another stage in the careful evolution
of Python. New language features have been kept to a minimum, many
bugs have been fixed and a wide variety of improvements have been made.

Notable changes in Python 2.4 include improvements to the importing of
modules, generator expressions, function decorators, a number of new
modules (including subprocess, decimal and cookielib) and countless
numbers of fixed bugs and smaller enhancements. For more, see the
(subjective) highlights, the release notes, or Andrew Kuchling's What's
New In Python, all available from the 2.4 web page.

http://www.python.org/2.4/

Please log any problems you have with this release in the SourceForge
bug tracker (noting that you're using Python 2.4):

http://sourceforge.net/bugs/?group_id=5470

Enjoy the new (stable!) release,
Anthony

Anthony Baxter
an*****@python.org
Python Release Manager
(on behalf of the entire python-dev team)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBrGgvDt3F8mpFyBYRAkK/AKCzaJ2jN+0/9+CrZCBIXQ9JkX/r5QCgiivM
IccXZ5Sl4WqRoUUtTaKaB+M=
=k33p
-----END PGP SIGNATURE-----

Jul 18 '05 #1
16 1490
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number
of things in my 2.3.3 install stopped working. Are there known techniques
for managing multiple versions?

Thanks,

Dave Merrill
Jul 18 '05 #2

Dave Merrill schrieb:
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number
of things in my 2.3.3 install stopped working. Are there known techniques
for managing multiple versions?


Short answer: depends on your OS.

I assume "stopped working" means: libraries were missing. This means that
"managing multiple versions" already works for you. The libraries are
installed for Python 2.3 and only 2.3 uses them. That's the expected
behaviour. Install them for 2.4 as well and everything should work fine.

Stefan
Jul 18 '05 #3
On Tue, 30 Nov 2004 08:05:55 -0500, Dave Merrill <dm*******@usaq.netq> wrote:
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number
of things in my 2.3.3 install stopped working. Are there known techniques
for managing multiple versions?


If you're building from source, use 'make altinstall' rather than
'make install'.
This will install Python as $prefix/bin/python2.4, and leave the
'python' executable
alone.
Jul 18 '05 #4
Should have been more specific.

As I recall, after I installed 2.4rc1 I installed the latest versions of
wxWindows and SPE IDE into it. The 2.4 copy of SPE died silently when
started, which I can accept as a incompatible versions.

What was strange to me was that at that point, the 2.3.3 copy of SPE did the
same thing. After I uninstalled 2.4, SPE ran again under 2.3.3, and that's
what I'm using now.

What caused this kind of interaction between installs? SPE and wxWindows
both live in site-packages, which I would have thought would make them
Python-version specific.

Dave Merrill

"Stefan Behnel" wrote:

Dave Merrill schrieb:
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number of things in my 2.3.3 install stopped working. Are there known techniques for managing multiple versions?


Short answer: depends on your OS.

I assume "stopped working" means: libraries were missing. This means that
"managing multiple versions" already works for you. The libraries are
installed for Python 2.3 and only 2.3 uses them. That's the expected
behaviour. Install them for 2.4 as well and everything should work fine.

Stefan

Jul 18 '05 #5
Used the packaged Windows (win2k) installs of Python and all components I
described. Not a C guy, no compiler, minimal knowledge about them.

Dave Merrill

"Anthony Baxter" wrote:
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number of things in my 2.3.3 install stopped working. Are there known techniques for managing multiple versions?


If you're building from source, use 'make altinstall' rather than
'make install'.
This will install Python as $prefix/bin/python2.4, and leave the
'python' executable
alone.

Jul 18 '05 #6
On Tue, 30 Nov 2004 08:53:25 -0500, Dave Merrill <dm*******@usaq.netq> wrote:
Should have been more specific.

As I recall, after I installed 2.4rc1 I installed the latest versions of
wxWindows and SPE IDE into it. The 2.4 copy of SPE died silently when
started, which I can accept as a incompatible versions.

What was strange to me was that at that point, the 2.3.3 copy of SPE did the
same thing. After I uninstalled 2.4, SPE ran again under 2.3.3, and that's
what I'm using now.

What caused this kind of interaction between installs? SPE and wxWindows
both live in site-packages, which I would have thought would make them
Python-version specific.


Beats me. You could try running SPE from a command line and seeing
what errors it spits out - you're probably going to need to talk to
whoever packaged up SPE.

Anthony
Jul 18 '05 #7
"Dave Merrill" <dm*******@usaq.netq> writes:
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number
of things in my 2.3.3 install stopped working. Are there known techniques
for managing multiple versions?

Thanks,

Dave Merrill


I can only speak for *NIX systems; don't know about MS Win** systems.
The quick answer is "Yes, it can be done".

1. Build and install as
make altinstall

This installs, e.g.:
/usr/local/
bin/
python2.3
lib/
python2.3
It does NOT also make an entry at /usr/local/bin/python. Thus any
scripts which call for "python" or "/usr/bin/env python" get the
default version.

2. Make a wrapper script, e.g. /usr/local/bin/py23:
unset PYTHONHOME PYTHONPATH
/usr/local/bin/python2.3 "$@"

3. Use "py23" to build site-packages. Since you need to do this
repeatedly, it is best to save the build scripts on a python-version
basis. E.g., a "go23" script. Inside the scripts, use "py23" as
appropriate wherever you would have used "python". e.g.:

....
export PKGVER=Numeric-23.0
ln -s ../${PKGVER}.tar.gz .
gzip -cd ${PKGVER}.tar.gz | gtar xvf -
cd ${PKGVER}

py23 setup.py build
py23 setup.py install
cd ..
....

4. When another python version shows up, copy the go23 to go24, edit
it for py23-->py24, and start building. Use either version at the
commmand line or in other scripts via py23 or py24. NOTE: In cgi's,
give the full path, e.g.:

#!/usr/local/bin/python2.3
--
Harry George
ha************@boeing.com 6-6M21 BCA CompArch Design Engineering
Phone: (425) 294-4718
Jul 18 '05 #8
Dave Merrill wrote:
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number
of things in my 2.3.3 install stopped working. Are there known techniques
for managing multiple versions?


What exactly stopped working? Other than the fact that
file associations for .py files will, obviously, point to
only one of the two versions, I don't believe there should
be any other conflicts. They use different registry keys,
for example, and normally don't rely on environment
variables, the PATH, or such. Had you made any customizations
to the default installation, such as adding a PYTHONHOME
env var, or putting one folder in your PATH?

-Peter
Jul 18 '05 #9
Anthony Baxter <an*****@interlink.com.au> wrote in message news:<ma**************************************@pyt hon.org>...
On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.4.


Is there Windows 64-bit edition available?
Jul 18 '05 #10
On Tue, 30 Nov 2004 23:31:34 +1100, Anthony Baxter wrote:

On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.4.


Question from a noob:

I have several third party python-modules installed on my current
Windowssystem, and I was wondering if there is a way to upgrade to
Python 2.4 without having to download and install all of those again?

Thanks in advance for any suggestions. :)

--
Morten
Trees hit cars only in self-defence.
Jul 18 '05 #11
Dave Merrill wrote:
Should have been more specific.

As I recall, after I installed 2.4rc1 I installed the latest versions of
wxWindows and SPE IDE into it. The 2.4 copy of SPE died silently when
started, which I can accept as a incompatible versions.

What was strange to me was that at that point, the 2.3.3 copy of SPE did the
same thing. After I uninstalled 2.4, SPE ran again under 2.3.3, and that's
what I'm using now.


Some vague possibilities that occur to me --

The 2.4 version is missing some libraries, or has binary libraries that
are compiled against a different version of Python. (All compiled
extensions must be compiled against a specific major.minor version;
extensions compiled against 2.3 won't work with 2.4.)

You have path issues, such that you're attempting to run 2.3 libs with
2.4, or vice versa. Check which version is now your "default"
(associated with .py/.pyw files, and/or found by typing a bare 'python').

I'm leaning towards the first of these as being most likely -- I
strongly suspect that there are few third-party packages that are
compiled against 2.4 yet. Those should start appearing Real Soon
Now(tm), though, now that 2.4 is officially released.

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #12
Morten Lied Johansen wrote:
On Tue, 30 Nov 2004 23:31:34 +1100, Anthony Baxter wrote:
On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.4.

Question from a noob:

I have several third party python-modules installed on my current
Windowssystem, and I was wondering if there is a way to upgrade to
Python 2.4 without having to download and install all of those again?

Thanks in advance for any suggestions. :)


If they're pure Python, done as standard packages with no
special dependencies etc, you could just copy their folders
from the lib/site-packages folder of your old Python to the
equivalent place in the new one.

If they're not, it may still be possible, but downloading
and installing may be easier.

My approach is to maintain a folder with the original .exe
files for each package I install, separate from everything
else. When I upgrade, I just run them again and select
Python 2.4 as the destination, and I don't have to worry
about extracting them from the old version.

If, by the way, these packages include C extensions, you
definitely have to download new ones and install from
scratch...

-Peter
Jul 18 '05 #13
Chang LI wrote:
Is there Windows 64-bit edition available?


Yes:

http://www.python.org/ftp/python/2.4...n-2.4.ia64.msi

Regards,
Martin
Jul 18 '05 #14
Christmas came early this year. Thank you all nice Python developers.

--
mvh Björn
Jul 18 '05 #15
On 30 Nov 2004 12:09:37 -0800, Chang LI <ch********@hotmail.com> wrote:.
On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.4.


Is there Windows 64-bit edition available?


If you went to the 2.4 page, you'd see that there is indeed a windows-itanium
version available. One click. http://www.python.org/2.4/
Jul 18 '05 #16
Anthony Baxter schrieb:
happy to announce the release of Python 2.4.

Thanks!

minor remarks:

First line from C:\Python24\README.txt

This is Python version 2.4 alpha 3
In C:\Python24\Tools
in various subdirs the README.TXT files disappeared.
--
regards kgm
Jul 18 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.3.5 (release candidate 1). Python 2.3.5 is a bug-fix release. See the release...
0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.3.5 (final). Python 2.3.5 is a bug-fix release. See the release notes at the...
5
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.3 (final). Python 2.4.3 is a bug-fix release. See the release notes at the...
0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the first BETA release of Python 2.5. This is an *beta* release of Python 2.5. As such, it is not...
0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the second BETA release of Python 2.5. This is an *beta* release of Python 2.5. As such, it is not...
0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the third BETA release of Python 2.5. This is an *beta* release of Python 2.5. As such, it is not...
0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the first RELEASE CANDIDATE of Python 2.5. This is not yet the final release - it is not suitable for...
4
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the second RELEASE CANDIDATE of Python 2.5. After the first release candidate a number of new bugfixes...
0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm announcing the release of Python 2.3.6 (release candidate 1). Python 2.3.6 is a security bug-fix release. While Python 2.5...
0
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.3.6 (FINAL). Python 2.3.6 is a security bug-fix release. While Python 2.5 is the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.