[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

Gerhard Häring report at bugs.python.org
Tue Jan 19 11:07:54 CET 2010


Gerhard Häring <gh at ghaering.de> added the comment:

As far as I can see the docs for Python 3.x need to be adjusted. In particular http://docs.python.org/3.1/library/sqlite3.html#sqlite-and-python-types

buffer should then there probably be replaced by memoryview. As far as I can see, the Python 3 definition of the old "buffer" interface is "anything that I can apply memoryview to". At least that was my interpretation when doing the Python 3 port of the sqlite3 module.

Correct?

When returning BLOBs, the sqlite3 module now returns bytes objects. I think this could be changed to memoryview without causing any problems.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7723>
_______________________________________


More information about the Python-bugs-list mailing list