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

Backporting Python 2.4 modules

Wouldn't it be cool if someone took all the enhanced and new modules in
Python 2.3 and 2.4, and backported them to Python 2.2? Maybe all into a
single distutil-installable package called, say, python24? Then you
could do:

from python24 import logging

Lots of the modules have been backported (logging and optparse, for
instance), but there's no central place to find them. And some modules
work fine in older versions, but you wouldn't know.

Since most of the enhancements since Python 2.2 have been in the
standard library, this would be really helpful. Especially for those of
us who want to support older versions of Python, but also want to take
advantage of newer libraries.

Anyway, hopefully someone things this is a good idea as well and maybe
tried to do it? Maybe? Please?

--
Ian Bicking / ia**@colorstudy.com / http://blog.ianbicking.org
Jul 18 '05 #1
2 1142
Ian Bicking wrote:
Wouldn't it be cool if someone took all the enhanced and new modules in
Python 2.3 and 2.4, and backported them to Python 2.2? Maybe all into a
single distutil-installable package called, say, python24? Then you
could do:

from python24 import logging

Lots of the modules have been backported (logging and optparse, for
instance), but there's no central place to find them. And some modules
work fine in older versions, but you wouldn't know.

Since most of the enhancements since Python 2.2 have been in the
standard library, this would be really helpful. Especially for those of
us who want to support older versions of Python, but also want to take
advantage of newer libraries.

Anyway, hopefully someone things this is a good idea as well and maybe
tried to do it? Maybe? Please?

I don't know if anyone has done this but I do think it's a great idea.
I don't think the "from python24 " is neccessary, there could just be a
source code repository of back ports...
I suspect for a lot of modules if the core functionality is rewritten in
Python it'll be easier to backport - I wonder if PyPy will have any
effect in this direction ...

David
Jul 18 '05 #2
[Ian Bicking]
Wouldn't it be cool if someone took all the enhanced and new modules in
Python 2.3 and 2.4, and backported them to Python 2.2?


FWIW,
sets.py runs under 2.2,
the itertools docs include code equivalents that run on 2.2,
the ASPN site has a 2.2 version of the new collections.deque object,
the new heapq functions, nsmallest and nlargest, will run on 2.2,
and the new decimal module will run on 2.3.

If you want to package these, that would be nice.

OTOH, upgrading to a more modern python has its advantages too. The newer
Pythons have fewer bugs, better memory usage, better docs, and improved
performance.
Raymond Hettinger
Jul 18 '05 #3

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

Similar topics

54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
10
by: Berthold Hoellmann | last post by:
Hello, When I use ./configure --with-thread --with-fpectl --with-signal-module \ --with-pymalloc --enable-shared --with-cxx=g++ make test on 2.3.3 I get
2
by: Olaf Meyer | last post by:
I'm having some problems compiling Python 2.3.3 on HP-UX (B.11.00). I've tried sevral different options for the configure script (e.g. enabling/disabling gcc, aCC) but I always get the same problem...
1
by: Jerald | last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks the use of uninitialized memory, etc), gives a lot of errors. See below. jfj@cluster:~/> python -V Python 2.3.4...
29
by: Stephen Ferg | last post by:
I am a very satisfied user of Python and have been for number of years. I would never willing use another language. I wish all good things for Python, and that moves me to express some thoughts...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined...
0
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes...
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.