tags:

views:

153

answers:

2

I am working on a PyS60 application for S60 2nd Edition devices. I have coded my application logic in Python 2.5.

Is there any tool that automates th conversion from Python 2.5 to Python 2.2 or do I need to do in manually?

+1  A: 

I don't know of any tool that would go from 2.5 to 2.2 automatically; but there was one a while ago that did 2.3 to 2.2 by RADLogic.

Depending on how many recent features your code uses, it may be trivial to convert it manually.

I had to backport some code a while back and all it actually took was to define True and False if they weren't already defined, write up some simple replacements for sum(), enumerate(), etc, and grab old versions of modules like datetime and logging that weren't yet in the 2.2 standard library.

Kiv
+3  A: 

The latest Python for S60, 1.9.0, actually includes Python 2.5.1. So maybe you don't need to convert.

Heikki Toivonen