From 1b37c888ecc67b7f355c7a2d7e0902a09d9dee1c Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 15 May 2020 06:02:46 +1200 Subject: [PATCH] Added a few module headers --- psycopg3/_psycopg3.pyx | 9 +++++++++ psycopg3/types/numeric.pyx | 6 ++++++ psycopg3/types/text.pyx | 6 ++++++ 3 files changed, 21 insertions(+) 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 -- 2.47.2