From: Daniele Varrazzo Date: Thu, 14 May 2020 18:02:46 +0000 (+1200) Subject: Added a few module headers X-Git-Tag: 3.0.dev0~525 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b37c888ecc67b7f355c7a2d7e0902a09d9dee1c;p=thirdparty%2Fpsycopg.git Added a few module headers --- diff --git a/psycopg3/_psycopg3.pyx b/psycopg3/_psycopg3.pyx index 0ab2fa969..c7537e0eb 100644 --- a/psycopg3/_psycopg3.pyx +++ b/psycopg3/_psycopg3.pyx @@ -1,3 +1,12 @@ +""" +psycopg3._psycopg3 optimization module. + +The module contains optimized C code used in preference to Python code +if a compiler is available. +""" + +# Copyright (C) 2020 The Psycopg Team + include "types/numeric.pyx" include "types/text.pyx" include "adapt.pyx" diff --git a/psycopg3/types/numeric.pyx b/psycopg3/types/numeric.pyx index edab1225e..6192412e1 100644 --- a/psycopg3/types/numeric.pyx +++ b/psycopg3/types/numeric.pyx @@ -1,3 +1,9 @@ +""" +Cython adapters for numeric types. +""" + +# Copyright (C) 2020 The Psycopg Team + from libc.stdint cimport * from psycopg3.types.endian cimport be16toh, be32toh, be64toh diff --git a/psycopg3/types/text.pyx b/psycopg3/types/text.pyx index d12ed2227..179088dc7 100644 --- a/psycopg3/types/text.pyx +++ b/psycopg3/types/text.pyx @@ -1,3 +1,9 @@ +""" +Cython adapters for textual types. +""" + +# Copyright (C) 2020 The Psycopg Team + from cpython.bytes cimport PyBytes_FromStringAndSize from cpython.unicode cimport PyUnicode_DecodeUTF8 from psycopg3.pq cimport libpq