On 09/26/2018 10:36 PM, Christian Ferrari wrote:
[snip]
> I'm not a Python developer at all, but I see usage of htonl()
> function... if it has the same meaning of the C function it could be
> influenced by 32/64 architecture differences.
>
> Do you have any suggestions?
>
> What do you think about Federico's proposal to expose the pqconn
> pointer? Could ctypes "c_void_p" a viable option?
Would a PyCapsule work? https://docs.python.org/2/c-api/capsule.html
If yes, I already have some code in place to expose the PGconn* as a
capsule. I can just push it on my repo.
federico
--
Federico Di Gregorio federico.digregorio@dndg.it
DNDG srl http://dndg.it
The reverse side also has a reverse side. -- Japanese proverb