diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-11-28 15:38:27 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-11-28 16:11:06 +0000 |
| commit | a0229cff8252c07eddf22626a65e3f2967e2b037 (patch) | |
| tree | f69f6e5f38c7f2100241a37ca6a5e98cca6c5e5f /doc/src | |
| parent | 60b1517c5590ec0addc60d50174d0e96566582e0 (diff) | |
| download | psycopg2-a0229cff8252c07eddf22626a65e3f2967e2b037.tar.gz | |
Documentation tweaked to omit Python 2.6 distinctions
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/usage.rst | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/doc/src/usage.rst b/doc/src/usage.rst index 79823b1..5dcab8f 100644 --- a/doc/src/usage.rst +++ b/doc/src/usage.rst @@ -457,14 +457,12 @@ the connection or globally: see the function Binary adaptation ^^^^^^^^^^^^^^^^^ -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 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) +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`, `bytearray`, and `bytes` (only in +Python 3: the name is available in Python 2 but it's only an alias for the +type `!str`). Any object implementing the `Revised Buffer Protocol`__ should +be usable as binary type. Received data is returned as `!buffer` (in Python 2) or `!memoryview` (in Python 3). .. __: http://www.python.org/dev/peps/pep-3118/ |
