]> granicus.if.org Git - python/commit
There are places in Python which assume bytes have 8-bits. Formalize that a
authorSkip Montanaro <skip@pobox.com>
Mon, 22 Dec 2003 16:31:41 +0000 (16:31 +0000)
committerSkip Montanaro <skip@pobox.com>
Mon, 22 Dec 2003 16:31:41 +0000 (16:31 +0000)
commitac4ea13a3aec87bf3e6ceb54e867e20f1fbd4253
tree282c8755f1af5910caff13a369dd81c375a51408
parent66518bbb67ee5d4ba5c8ec314f2192e425a2d707
There are places in Python which assume bytes have 8-bits.  Formalize that a
bit by checking the value of UCHAR_MAX in Include/Python.h.  There was a
check in Objects/stringobject.c.  Remove that.  (Note that we don't define
UCHAR_MAX if it's not defined as the old test did.)
Include/Python.h
Objects/stringobject.c