[ python-Bugs-1044479 ] docs for Py_UNICODE are wrong

SourceForge.net noreply at sourceforge.net
Mon Oct 11 12:28:43 CEST 2004


Bugs item #1044479, was opened at 2004-10-11 12:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1044479&group_id=5470

Category: Unicode
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Heller (theller)
Assigned to: M.-A. Lemburg (lemburg)
Summary: docs for Py_UNICODE are wrong

Initial Comment:
Quoting the docs (Python C/API manual, section 7.3.2,
unicode objects):

Py_UNICODE

This type represents a 16-bit unsigned storage type
which is used by Python internally as basis for holding
Unicode ordinals. On platforms where wchar_t is
available and also has 16-bits, Py_UNICODE is a typedef
alias for wchar_t to enhance native platform
compatibility. On all other platforms, Py_UNICODE is a
typedef alias for unsigned short.

This is apparently wrong for wide unicode builds.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1044479&group_id=5470


More information about the Python-bugs-list mailing list