Обсуждение: Dealing with a change in Python 3.3 memoryview

Поиск
Список
Период
Сортировка

Dealing with a change in Python 3.3 memoryview

От
Daniele Varrazzo
Дата:
Hello,

after a change in Python 3.3 memoryview, accessing memoryview items
(i.e. what returned by default reading bytea fields in Python 3)
returns ints instead of bytes. In order to make Py 3.3 consistent with
the other Python 3 releases, there is some more magic to do (as if the
above wasn't black enough). My solution is in this commit:

https://github.com/dvarrazzo/psycopg/commit/469b6f8aff4cafe203d851b19bedfab0128e795a

I'd like a comment by somebody hardcore enough to grok this area, if
the solution is appropriate or if a different spell is required.

Thank you very much

-- Daniele