[Python-Dev] Re: python/dist/src/Objectsunicodeobject.c, 2.204,
Jack.Jansen at cwi.nl
Fri Dec 19 17:57:02 EST 2003
On 19-dec-03, at 16:39, Guido van Rossum wrote:
>>>> AFAIK, *(unsigned char*)s is always smaller than 256.
>>> except when it isn't. see the ANSI C spec for details.
>> Ah. I found. I'm very surprised for that. Thank you! :-)
>> BTW, do we really support architectures with 9bits-sized char?
> I would expect that a lot of our code assumes 8-bit characters, and I
> personally wouldn't mind if Python was limited to such platforms.
Then there is a lot of code that could be tuned for this. Since I'm
using gcc 3.3 (which came with OSX 10.3) I get lots of warnings about
comparisons that are always true due to the size of the operands.
I looked at a couple of these and I think they were all char-related.
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
More information about the Python-Dev