Subject Re: [firebird-python] next driver version
Author Gerdus van Zyl
An automated tool exists to convert python 3 to 2 code; see http://pypi.python.org/pypi/3to2
So maybe development can be done in 3 and backported automagically with only minor tweaks.

On Mon, Oct 18, 2010 at 12:11 PM, Werner F. Bruhin <werner.bruhin@...> wrote:
 

On 18/10/2010 11:48, Hajime Nakagami wrote:
Hi all,

I'm focus to Python3 driver because There is no driver for Python3.
Python 2.x are different from Python3 , so It's difficult to porting 
this driver  to Python 2.x .

Really great that you are undertaking the development of this.

While Py 3 and Py 2 are different beasts I think it would be a pity if this new driver does not support any Py 2 version.

Haven't used Py 3 nor will I for some time as a lot of the stuff I use is not yet ported to Py 3, I would guess that many are in a similar position.

No chance of making it work with Py 2.6 and/or Py 2.7?

Just downloaded the code and tried to run it on Py 2.6.5, no surprise it doesn't run, but:

Just for the heck of it I started to play and changed:
- from __future__ import print_function
- changed to this import "from fberrmsgs import messages"
- would need to change the super() calls, I believe to e.g. super(create_database, self)
- probably some other things will come up

Is it worse while continuing this "playing" and is there someone with more technical know how then me on both Python 2.x and 3.x who can help when I hit walls?

Werner



--
Gerdus van Zyl