[Python-Dev] unicode, "const"s and lvalues
Guido van Rossum
Wed, 27 Jun 2001 17:57:16 -0400
> Unreasonable as it may seem, my compiler really expects that entities
> declared as const's not be used in contexts where a modifiable lvalue is
> required. It gets all huffy, and refuses to continue compiling, even if
> I speak nicely (in unicode) to it. I'll file a bug report. On the code,
> not the compiler <wink>.
VC++ also warns about this.
I think the declaration of the Character Type APIs in unicodeobject.h
really shouldn't include either register or char.
Then their implementations should also lose the 'const'.
--Guido van Rossum (home page: http://www.python.org/~guido/)