[bind10-dev] Python 2 vs Python 3, was address dependency problems for beta/release
Jelte Jansen
jelte at isc.org
Wed Nov 28 14:10:35 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/28/2012 02:20 PM, Shane Kerr wrote:
>
> - Convert our C++ wrappers from Python 3 to Python 2
>
> That will likely take more work than everything else put together.
> :(
>
> Maybe Jelte can comment on that, since he did most work in this
> area?
>
It's been a while, and this is from the top of my head, so it may not
be completely right :)
While it would be a significant piece of work, I don't know whether it
would be more than the rest, IIRC there would be two big things that
need to be done:
1. I think a few object formats have been added for PyArg_ParseTuple()
If so, some of them may not be trivial to port back (there is a reason
they got added :)), but the simpler ones haven't changed I think. This
is also the place you'll run into the unicode differences between 2
and 3 (but that may actually make the code for 2 simpler).
2. Update initialization code for each wrapper
this should me more repetitive than hard.
And of course there are probably other incompatibilities I don't know
from the top of my head :)
In general, with some exceptions, yes I think it is a lot of work, but
mostly repeating the same process, so in that sense the diff would be
larger than the effort, so to say.
Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlC2G1sACgkQ4nZCKsdOncXdGACgi+rSv+UA249q8I+WLZK16+aR
7oEAn1UZduDb9AqxdL2kADbcNUm7SQZG
=8W2I
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list