[Python-Dev] Re: [Python-checkins] python/dist/src/Objects
unicodeobject.c, 2.197, 2.198
M.-A. Lemburg
mal at lemburg.com
Tue Sep 16 17:22:26 EDT 2003
tim_one at users.sourceforge.net wrote:
> Update of /cvsroot/python/python/dist/src/Objects
> In directory sc8-pr-cvs1:/tmp/cvs-serv17421/Objects
>
> Modified Files:
> unicodeobject.c
> Log Message:
> On c.l.py, Martin v. Löwis said that Py_UNICODE could be of a signed type,
> so fiddle Jeremy's fix to live with that. Also added more comments.
Note that the implementation will bomb in several places if
Py_UNICODE is a signed type.
Py_UNICODE was never intended to be a signed type, so the proper
fix would be to add logic so that Py_UNICODE gets forced to be an
unsigned type.
The only case where Py_UNICODE could become signed is via
a compiler that defines wchar_t to be signed -- rather unlikely.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Software directly from the Source (#1, Sep 16 2003)
>>> Python/Zope Products & Consulting ... http://www.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the Python-Dev
mailing list