diff --git a/doc/src/usage.rst b/doc/src/usage.rst index e0595d28..d480adef 100644 --- a/doc/src/usage.rst +++ b/doc/src/usage.rst @@ -256,11 +256,11 @@ the SQL string that would be sent to the database. single: memoryview; Adaptation single: Binary string -- Binary types: Python types representing binary objects are converted in +- Binary types: Python types representing binary objects are converted into PostgreSQL binary string syntax, suitable for :sql:`bytea` fields. Such types are `buffer` (only available in Python 2), `memoryview` (available from Python 2.7), `bytearray` (available from Python 2.6) and `bytes` - (only form Python 3: the name is available from Python 2.6 but it's only an + (only from Python 3: the name is available from Python 2.6 but it's only an alias for the type `!str`). Any object implementing the `Revised Buffer Protocol`__ should be usable as binary type where the protocol is supported (i.e. from Python 2.6). Received data is returned as `!buffer` (in Python 2)