Re: [Patches] [Patch #102955] bltinmodule.c warning fix
On Tue, Dec 19, 2000 at 07:02:05PM -0800, noreply@sourceforge.net wrote:
Date: 2000-Dec-19 19:02 By: tim_one
Unrelated to your patch but in the same area: the other msg, "ord() expected string or Unicode character", doesn't read right. The type names in question are "string" and "unicode":
type("")
type(u"") "character" is out of place, or not in enough places. Just thought I'd mention that, since *you're* so cute!
Is it OK to refer to 8-bit strings under that name? How about "expected an 8-bit string or Unicode string", when the object passed to ord() isn't of the right type. Similarly, when the value is of the right type but has length>1, the message is "ord() expected a character, length-%d string found". Should that be "length-%d (string / unicode) found)" And should the type names be changed to '8-bit string'/'Unicode string', maybe? --amk
participants (3)
-
Andrew Kuchling
-
M.-A. Lemburg
-
Tim Peters