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

Guido van Rossum guido@python.org
Wed, 16 Oct 2002 08:39:05 -0400


I was wondering whether this is an oversight or intended. Buffer objects can certainly be compared to strings on a byte-by-byte basis, so the compare result looks like a (long standing) bug to me.

I'd consider it a feature, designed to convey the subliminal message "the buffer type should be deprecated". :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)