[ldns-users] adding (partial) Python3 support
patrik at frobbit.se
Tue Aug 16 15:58:47 CEST 2011
Indeed I will!
On 16 aug 2011, at 12:04, Ondřej Surý wrote:
> could you also test the Python 3 implementation? It was you who asked about it?
> On Tue, Aug 16, 2011 at 11:50, W.C.A. Wijngaards <wouter at nlnetlabs.nl> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Hi Karel,
>> On 08/15/2011 04:24 PM, Karel Slany wrote:
>>> recently I have been toying with the ldns sources in order to make them
>>> compile with Python3 support -- via the './configure --with-pyldns
>>> PYTHON_VERSION=3' command. I've made several changes to the supplied
>>> autoconf Python detection macros and others to make them work both with
>>> Python 2 and 3.
>> Because we do not maintain these python implementations ourselves, it
>> would be good if other users could tell us if these patches work for
>> Python 2. There are large changes, and we want to support our users.
>> If that works, the patch is likely very nice to accept. Thanks for the
>> good work :-)
>> Best regards,
>>> The Python3 wrapper does now compile. However, the Python3 support is
>>> incomplete. In Python3 they have abandoned the old C I/O API in favour
>>> of the io module. Therefore SWIG does no longer support FILE* typemaps
>>> -- i.e. C functions taking FILE* arguments will generate an error in
>>> This mail contains two patches:
>>> 1) python3.diff -- Contains modifications enabling the Python3 module to
>>> compile and to run with Python3. It also contains a few working examples
>>> for Python3 which do the same as the original Python2 examples.
>>> 2)ldns_axfr_start.diff -- As I discovered, the ldns-axf example did not
>>> work -- this patch should fix it.
>>> The patches are against the 3523 (current) svn revision.
>>> Best regard
>>> Karel Slany
>>> ldns-users mailing list
>>> ldns-users at open.nlnetlabs.nl
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.11 (GNU/Linux)
>> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>> -----END PGP SIGNATURE-----
>> ldns-users mailing list
>> ldns-users at open.nlnetlabs.nl
> Ondřej Surý <ondrej at sury.org>
More information about the ldns-users