[Python-Dev] buffer('abc') == 'abc' is False ?!

Martin v. Loewis martin@v.loewis.de
16 Oct 2002 15:30:40 +0200


"M.-A. Lemburg" <mal@lemburg.com> writes:

> * signals "this data is binary data"
> * compares just fine to strings
> * gets accepted by all APIs which use the buffer interface to
>    access the data
> * has a C API which can be used in extensions
> * is available in Python 2.1.x and up

I believe the string type meets all these requirements.

Regards,
Martin