]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Don't overwrite the module of the psycopg.pq.pq_ctypes objects
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 7 Jan 2022 17:32:47 +0000 (18:32 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 7 Jan 2022 17:39:14 +0000 (18:39 +0100)
commit5193d49ae638bc277e524e3445e994848bd18945
tree9306460b88539d891cee6e98ef6df6334fa74184
parent07df0295712755145d2dd83df2f76065fc87d5bd
Don't overwrite the module of the psycopg.pq.pq_ctypes objects

It might be useful to tell apart the C version from the python versions
for debugging. The C versions don't do it, so they repr as:

    <psycopg_binary.pq.PGconn [IDLE] (database=piro) at 0x7f8556deb040>

See #201.
psycopg/psycopg/pq/pq_ctypes.py