diff options
Diffstat (limited to 'psycopg/python.h')
-rw-r--r-- | psycopg/python.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/psycopg/python.h b/psycopg/python.h index 8fee7fd..40895bb 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -117,8 +117,13 @@ #define Bytes_Size PyString_Size #define Bytes_AsString PyString_AsString #define Bytes_AsStringAndSize PyString_AsStringAndSize +#define Bytes_FromString PyString_FromString #define Bytes_FromStringAndSize PyString_FromStringAndSize +#define Bytes_FromFormat PyString_FromFormat +#define Bytes_Format PyString_Format + #else + #define BytesType PyBytes_Type #define Bytes_Check PyBytes_Check #define Bytes_AS_STRING PyBytes_AS_STRING @@ -126,7 +131,13 @@ #define Bytes_Size PyBytes_Size #define Bytes_AsString PyBytes_AsString #define Bytes_AsStringAndSize PyBytes_AsStringAndSize +#define Bytes_FromString PyBytes_FromString #define Bytes_FromStringAndSize PyBytes_FromStringAndSize +#define Bytes_FromFormat PyBytes_FromFormat +#define Bytes_Format PyBytes_Format + +HIDDEN PyObject *PyBytes_Format(PyObject *format, PyObject *args); + #endif /* Mangle the module name into the name of the module init function */ |