473,320 Members | 1,829 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.

when will python 2.5 take in mainstream?

A lot of application based on python claim that python 2.3 or 2.4 is
needed not 2.5, ie. mysqldb. I've been using python for months. I
don't care about 2.4 or 2.5. But I like the default icons of python in
2.5. So I just use that, but some scripts can't work on that.

When will all these applications support 2.5?

Thanks.
Feb 4 '07 #1
5 1272
Eric CHAO wrote:
A lot of application based on python claim that python 2.3 or 2.4 is
needed not 2.5, ie. mysqldb. I've been using python for months. I
don't care about 2.4 or 2.5. But I like the default icons of python in
2.5. So I just use that, but some scripts can't work on that.

When will all these applications support 2.5?
Many applications that require 2.3 or 2.4 work fine in 2.5. Did you try
mysqldb and have it fail?

Steve
Feb 4 '07 #2
When they have to ...

One of the big things about Python is that its penetration slows it
down. There's more legacy code and interdependant systems around now
that Python is more successful and more mature.

Here's a thought -- perhaps it would be worth having some good ways to
interact with Python from Python. Suppose you have some 2.4 code
someplace, interacting with your mysqldb or whatever, and you don't
want to rewrite it. So long as you have some kind of object broker,
you could (plausibly) leave your 2.4 apps running with the old
interpreter, but wrap them for Python 2.5 and use that in your new
development.

Ditto 3.0.

Rather than having to re-write every interacting component, maybe it
could be straightforward to all Python2.4 from Python2.5 to execute
particular library calls. I'm not an expert, I don't know how you'd
build such a system, but I do know that re-writing stuff is a real
pain.

Perhaps APIs for 2.5 and 3.0 could have a special version flag, and if
not present or not compatible, a 2.4 interpreter could be called
instead...

Cheers,
-T

On Feb 5, 8:01 am, Dennis Lee Bieber <wlfr...@ix.netcom.comwrote:
On Sun, 4 Feb 2007 19:10:13 +0800, "Eric CHAO" <lionc...@gmail.com>
declaimed the following in comp.lang.python:
When will all these applications support 2.5?

cynical answer: when you download the sources and build them against
the 2.5 headers

In the case of MySQLdb, one problem is that, as I recall, the
primary author does not have a Windows compatible build environment and
essentially relies upon others doing the Linux port to Windows and
releasing pre-built installers.
--
Wulfraed Dennis Lee Bieber KD6MOG
wlfr...@ix.netcom.com wulfr...@bestiaria.com
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: web-a...@bestiaria.com)
HTTP://www.bestiaria.com/

Feb 4 '07 #3
tl**********@gmail.com a écrit :
When they have to ...

One of the big things about Python is that its penetration slows it
down. There's more legacy code and interdependant systems around now
that Python is more successful and more mature.

Here's a thought -- perhaps it would be worth having some good ways to
interact with Python from Python. Suppose you have some 2.4 code
someplace, interacting with your mysqldb or whatever, and you don't
want to rewrite it. So long as you have some kind of object broker,
you could (plausibly) leave your 2.4 apps running with the old
interpreter, but wrap them for Python 2.5 and use that in your new
development.
KISS please.
Ditto 3.0.

Rather than having to re-write every interacting component, maybe it
could be straightforward to all Python2.4 from Python2.5 to execute
particular library calls. I'm not an expert, I don't know how you'd
build such a system, but I do know that re-writing stuff is a real
pain.
Most of Python 2.4 source code is compatible with Python 2.5. Problems
come with native compiled modules, you must have those for you 2.X
Python version - some times just a compilation is enough.

For Python 3.0, AFAIK its a big rewrite and developers know that it will
be uncompatible in large parts with existing code.

Perhaps APIs for 2.5 and 3.0 could have a special version flag, and if
not present or not compatible, a 2.4 interpreter could be called
instead...
Making Python interpreter bigger and more complex.
Some code already has "hacks", trying to import a newer module and
installing a fallback if its not available.

If really your old Python 2.4 software cant run under Python 2.5, then
you can have both Python 2.4 and 2.5 installed and running some code.
Setup Pyro [1] on both, and go throught remote object invocation.
And if you dont need new Python 2.5 stuff in your code evolution, just
stay with 2.4, it works well.
A+

Laurent.

[1] http://pyro.sourceforge.net/
Feb 5 '07 #4
Laurent Pointal wrote:
For Python 3.0, AFAIK its a big rewrite and developers know that it will
be uncompatible in large parts with existing code.
Wrong on both counts. ;-) Python 3.0 is not a rewrite. It's based on the
same code base as the 2.X line, but with a lot of the old deprecated
things removed. And, while Python 3.0 is allowing itself to break
backwards compatibility, at least that the Python level, it should be
largely compatible with the 2.X line. There will be some breakages, but
(1) they shouldn't be too extensive and (2) there will be utilities to
help you update your code. In many cases, it will be possible to write
code that works in both Python 2.X and 3.0.

STeVe
Feb 5 '07 #5
Steven Bethard a écrit :
Laurent Pointal wrote:
>For Python 3.0, AFAIK its a big rewrite and developers know that it will
be uncompatible in large parts with existing code.

Wrong on both counts. ;-) Python 3.0 is not a rewrite. It's based on the
same code base as the 2.X line, but with a lot of the old deprecated
things removed. And, while Python 3.0 is allowing itself to break
backwards compatibility, at least that the Python level, it should be
largely compatible with the 2.X line. There will be some breakages, but
(1) they shouldn't be too extensive and (2) there will be utilities to
help you update your code. In many cases, it will be possible to write
code that works in both Python 2.X and 3.0.

STeVe
Hum my brain just mix 3 and 3000. Sorry, just a factor 1000.
Feb 5 '07 #6

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

Similar topics

57
by: John Howard | last post by:
I've sent several messages over the last year asking about python - Who teaches python? Is python losing steam? etc. I have noticed, eg, the declinng number of books at my local borders. The last...
52
by: Neuruss | last post by:
It seems there are quite a few projects aimed to improve Python's speed and, therefore, eliminate its main limitation for mainstream acceptance. I just wonder what do you all think? Will Python...
89
by: Radioactive Man | last post by:
In python 2.3 (IDLE 1.0.3) running under windows 95, I get the following types of errors whenever I do simple arithmetic: 1st example: >>> 12.10 + 8.30 20.399999999999999 >>> 1.1 - 0.2...
38
by: BORT | last post by:
Please forgive me if this is TOO newbie-ish. I am toying with the idea of teaching my ten year old a little about programming. I started my search with something like "best FREE programming...
52
by: Steve Holden | last post by:
I've been thinking (and blogging) about python evangelism since PyCon, as a result of which I created a squidoo lens: http://www.squidoo.com/pythonlogy Imagine my surprise at discovering that...
29
by: walterbyrd | last post by:
Some think it will. Up untill now, Java has never been standard across different versions of Linux and Unix. Some think that is one reason that some developers have avoided Java in favor of...
2
by: Paul Boddie | last post by:
QOTW: "We of all people should understand Worse Is Better. And I forgot to mention a little flash in the pan called Python, for which Tkinter (2+2 left as an exercise) is the GUI of choice." - Ken...
70
by: TheFlyingDutchman | last post by:
Python user and advocate Bruce Eckel is disappointed with the additions (or lack of additions) in Python 3: http://www.artima.com/weblogs/viewpost.jsp?thread=214112
61
by: giveitawhril2008 | last post by:
I'm just learning about Python now and it sounds interesting. But I just read (on the Wiki page) that mainstream Python was written in C. That's what I was searching for: Python was written in what...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.