[issue10616] Change PyObject_AsCharBuffer() error message

2011-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ed75bb4f37c by Victor Stinner in branch 'default': Close #10616: mention bytes and bytearray in PyObject_AsCharBuffer() error http://hg.python.org/cpython/rev/7ed75bb4f37c -- nosy: +python-dev resolution: -> fixed stage: -> committed/rej

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: +1 to Antoine’s +1. -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-25 Thread Sijin Joseph
Sijin Joseph added the comment: Looking at object.h the buffer interface is defined as /* buffer interface */ typedef struct bufferinfo { void *buf; PyObject *obj;/* owned reference */ Py_ssize_t len; Py_ssize_t itemsize; /* This is Py_ssize_t so it can be

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 to Victor's proposal ("expected bytes, bytearray or buffer compatible object"). -- nosy: +pitrou ___ Python tracker ___ ___

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-24 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-18 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg124315 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Victor, I think you attached msg123266 to the wrong issue. -- ___ Python tracker ___ ___ Python-bu

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Victor, I think you attached to the wrong issue. -- nosy: +r.david.murray ___ Python tracker ___ _

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-04 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: > complex(): raise a better but incomplete error message on error > ("complex() arg is not a string"), incomplete because number is not > mentionned Fixed by r86977. -- ___ Python tracker

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: See also #6780. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
New submission from STINNER Victor : b'abc'.partition(':') raises a confusing TypeError('expected an object with the buffer interface'): what is a buffer? what is the buffer interface? The error comes from PyObject_AsCharBuffer() which is used by: - bytes methods: partition, rpartition, find,