473,320 Members | 2,024 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,320 software developers and data experts.

Upgrading Python Article

http://www.voidspace.org.uk/python/a...ng_python.html

I've been looking at whether to upgrade immediately from Python 2.3 to
Python 2.4 or postpone it. This is my first `major version change`, so
I've come up against the usual windoze (tm) problem - upgrading python
breaks all my extension modules.

I've been looking into the issues, what modules do I use, can I
compile them myself ? etc... and the result is a brief article on the
issues round upgrading.

I thought I would share (awww.... aint that nice).

Flames welcomed.

Regards,
Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
6 1610
I had to back out of 2.4. In time I'll upgrade.

It's not really fair to blame windoze for the incompatibility. It is
possible to make software backward compatible with shared libraries. But
you need a plan. The windoze plan is based on COM in its various guises.
Of course, it's not standard outside of the windoze world.

D.

"Michael Foord" <fu******@gmail.com> wrote in message
news:6f**************************@posting.google.c om...
http://www.voidspace.org.uk/python/a...ng_python.html

I've been looking at whether to upgrade immediately from Python 2.3 to
Python 2.4 or postpone it. This is my first `major version change`, so
I've come up against the usual windoze (tm) problem - upgrading python
breaks all my extension modules.

I've been looking into the issues, what modules do I use, can I
compile them myself ? etc... and the result is a brief article on the
issues round upgrading.

I thought I would share (awww.... aint that nice).

Flames welcomed.

Regards,
Fuzzy

http://www.voidspace.org.uk/atlantib...thonutils.html

Jul 18 '05 #2
Sure - I don't really *blame* windoze for the problem. It's just more
of a pain upgrading python version on windows. As I said it's given me
an opportunity to work out which extension modules I'm really using !

In actual fact I admire windows, there's an awful lot that goes on
beneath the hood. Microsofts dubious business practises mean that they
get a lot of stick - but windows is very sophisticated.

It is produced with a different ethos though, not *just* the fact that
it is closed source. It is designed for users, whereas Lunix is
designed for programmers. This means that setting up a compiler isn't a
straightforward process (See the references in the article).

Microsoft do now give away their .NET optimising compiler - but
distutils can't be configured to use it without hacking into it. This
means it's more tricky than configuring distutils to use gcc from
mingw. I'm still not sure whether that will work for python 2.4 - I had
got the impression it wouldn't. On the other hand the microsoft
compiler is *better* than gcc anyway :-)

Regards,
Fuzzyman
http://www.voidspace.org.uk/atlantib...thonutils.html

Jul 18 '05 #3
Fuzzyman schreef:
On the other hand the microsoft
compiler is *better* than gcc anyway :-)


It's better at optimising, but it doesn't support standard C & C++. ;-)

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #4
JanC <us*********@janc.invalid> wrote:
Fuzzyman schreef:
On the other hand the microsoft
compiler is *better* than gcc anyway :-)


It's better at optimising, but it doesn't support standard C & C++. ;-)


I don't think that's fair. Visual C++ 7.1 is signficantly better at
compliance than their past compilers.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #5
Tim Roberts schreef:
I don't think that's fair. Visual C++ 7.1 is signficantly better at
compliance than their past compilers.


AFAIK that's only for C++, not for C...?

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #6
JanC <us*********@janc.invalid> wrote:
Tim Roberts schreef:
I don't think that's fair. Visual C++ 7.1 is signficantly better at
compliance than their past compilers.


AFAIK that's only for C++, not for C...?


Yes. Microsoft has largely chosen to ignore C99. According to the Visual
Studio team, there has simply been no demand.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #7

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

Similar topics

6
by: Stephen Boulet | last post by:
When I upgrade from 2.2.3 to 2.3 on windows, do I first uninstall 2.2.3? -- Stephen
2
by: Zachary | last post by:
Hello, I've heard some rumors about Python 3.0. I am wondering what sort of upgrading I'll have to do, as I have also heard people on this group asking us to use certain modules or operators or...
2
by: Greg | last post by:
The following article from microsoft describes a workaroind for a bug in hte beta version of VISUAL PYTHON DOT NET ...
4
by: Robert Oschler | last post by:
Hello, (Note: if there is a FAQ that covers this issue just give me the URL. I checked python.org's General and Windows FAQ's and didn't see anything.) I am about to upgrade from Python 2.2...
11
by: frr | last post by:
Hi, After upgrading to 2.4 (from 2.3), I'm getting a weird syntax error: >>> import themes Traceback (most recent call last): File "<interactive input>", line 1, in ? File "themes.py", line...
4
by: malv | last post by:
Upgrading Class Instances Automatically on Reload: Recipe 20.15 out of Python Cookbook #2. Did anybody get this recipe to work? The original example by Michael Hudson works without problems....
1
by: bruce | last post by:
hi. i'min a situation where i might need to upgrade python. i have the current version of python for FC3. i might need to have the version for FC4. i built the version that's on FC4 from the...
0
by: skip | last post by:
At work I need to upgrade numpy, scipy, ipython and matplotlib. They need to be done all at once. All have distutils setups but the new versions and the old versions are incompatible with one...
6
by: Keith Hughitt | last post by:
Hi all, I've run into a strange error while trying to store some PNG images in a MySQL database using MySQLdb. When I try to insert smaller images (< 64kb or so) everything seems to work fine....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.