On Sat, Dec 4, 2010 at 2:28 AM, Antoine Pitrou <solip...@pitrou.net> wrote:
> On Fri, 03 Dec 2010 10:11:29 -0500
> "R. David Murray" <rdmur...@bitdance.com> wrote:
>> >
>> > >>> 'abc'.transform('hex')
>> > TypeError: 'str' does not support the buffer interface
>> > >>> b'abc'.transform('rot13')
>> > TypeError: expected an object with the buffer interface
>>
>> I find these 'buffer interface' error messages to be the most confusing
>> error message I get out of Python3 no matter what context they show up
>> in.  I have no idea what they are telling me.  That issue is more
>> general than transform/untransform, but perhaps it could be fixed
>> for transform/untransform in particular.
>
> I agree. "buffer interface" is a technicality that the Python user
> doesn't do about (unless (s)he also writes C extensions). How about
> "expected a bytes-compatible object"?

Why not "binary data interface"? That's what they're actually looking for.

It seems odd for 'rot13' to be throwing that error though.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to