diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-23 04:05:45 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-31 03:18:26 +0100 |
commit | c3196ebd9d7fdc604fd97c97cc42d8f2c2a50224 (patch) | |
tree | e5a0bf1883dab6e692b206198991f38ce566b7a0 /psycopg/python.h | |
parent | e18f1c63eab211f7f6edf62aca09a27a3097748c (diff) | |
download | psycopg2-c3196ebd9d7fdc604fd97c97cc42d8f2c2a50224.tar.gz |
Added PyBytes_Format function.
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 */ |