[Python-Dev] TypeError: foo, bar

Guido van Rossum guido@python.org
Fri, 01 Dec 2000 08:02:02 -0500


> just stumbled upon yet another (high-profile) python newbie
> confused a "TypeError: read-only character buffer, dictionary"
> message.
> 
> how about changing "read-only character buffer" to "string
> or read-only character buffer", and the "foo, bar" format to
> "expected foo, found bar", so we get:
> 
>     "TypeError: expected string or read-only character
>     buffer, found dictionary"

The first was easy, and I've done it.  The second one, for some
reason, is hard.  I forget why.  Sorry.

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