[Python-Dev] TypeError: foo, bar

Fredrik Lundh fredrik@effbot.org
Fri, 1 Dec 2000 07:39:57 +0100


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"

</F>