[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2013-03-23 Thread STINNER Victor
STINNER Victor added the comment: @skrah: ping! @piro: can't you modify psycopg2 to add conditional code depending on the Python version? IMO the behaviour change is wanted. http://www.python.org/dev/peps/pep-3118/ -- nosy: +haypo ___ Python

[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2013-03-23 Thread Stefan Krah
Stefan Krah added the comment: I've corresponded privately with Daniele Varrazzo about the psycopg2 issue already and then forgot about this (the psycopg2 fix is good). Yes, the change was intentional. There's one open issue (#15944) where dabeaz isn't happy about the change, so let's make that

[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2012-10-11 Thread Daniele Varrazzo
New submission from Daniele Varrazzo: Definitely related to this change in Python 3.3: Accessing a memoryview element with format ‘B’ (unsigned bytes) now returns an integer (in accordance with the struct module syntax). For returning a bytes object the view must be cast to ‘c’

[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2012-10-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +3.3regression nosy: +skrah versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16204 ___