[Python-Dev] getting the UCS-2 representation of a unicode object

Martin v. Loewis martin@v.loewis.de
20 May 2002 19:21:31 +0200


"M.-A. Lemburg" <mal@lemburg.com> writes:

> > I sincerely hope that you are mistaken in your belief that
>  > UCS-2 is so used.
> 
> I should know...

But, as John explains - you don't, right? Python uses UTF-16
internally, see PEP 261.

Regards,
Martin