If Psycopg was able to retrieve a PyCapsule, XTA should be able to use it and the Python interpreter would be a gateway between two C/C++ distinct modules (Psycopg and XTA).
I'm going to perform some experiments in the XTA wrapper before coming back to this mail thread.
Kind Regards
Ch.F.
Il giovedì 27 settembre 2018, 16:41:07 CEST, Daniele Varrazzo <daniele.varrazzo@gmail.com> ha scritto:
On Wed, Sep 26, 2018 at 9:36 PM Christian Ferrari <camauz@yahoo.com> wrote: > > Dear Daniele, > thank you for providing the hack: it's a starting point to check integration feasibility. > Unfortunately it does not work in my environment: > Ubuntu LTS 14.04 64 bit > python 2.7.6
> File "pqconn_hack.py", line 24, in getpqconn > pqconn = htonl(int(hex[ver_off + 8:ver_off + 16], 16)) > TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'
This is an error: it should have been 'mem' instead of 'hex':