Subject Re: [firebird-python] FDB and Python 3
Author Pavel Cisar
Hi,

Dne 11.1.2012 14:09, Philippe Makowski napsal(a):
>
> I'm about to make FDB working with Python 3
>
> I see 3 solutions for that :
>
> - Like SQLAlchemy rely on a 2to3 script
> - Add some if PYTHON_MAJOR_VER==3:
> everywhere that it is need
> - Make two subdir : one for Python 2 , one for Python 3, like for
> example the MySQL driver do
> see http://bazaar.launchpad.net/~geertjmvdk/myconnpy/main/files
>
> I think that the last solution is the best, because the first one
> doesn't seems so reliable, the second one is sometimes hard to manage,
> and a lot of people tend to handle Python 2 and Python 3 like 2 separate
> languages, and it make some sens
>
> opinion ?

Ideally, the FDB code should be compatible to both Python lines. We
simply don't know yet whether we can achieve this, and how much Python
version specific code we would need. Hence I would suggest to postpone
the decision about layout/solution until we would know.

I.e. let see what changes are/were necessary to make it run on P3 and
whether there is a way to fix that in P2/3 compatible way.

best regards
Pavel Cisar
IBPhoenix