"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> several string methods accepts either strings or objects that support
> the buffer api, and ends up raising a "expected a character buffer
> object" error if you pass in something else.  this isn't exactly helpful
> for non-experts -- the term "character buffer object" doesn't appear in
> any python tutorials I've seen.
>
>     >>> "x".find(1)
>     Traceback (most recent call last):
>       File "<stdin>", line 1, in <module>
>     TypeError: expected a character buffer object
>
>
> I think should be fixed, but I cannot make up my mind on what's the best

'expected a string or character buffer' would be an improvement.

tjr



_______________________________________________
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