[Python-3000] PEP 3138- String representation in Python 3000
M.-A. Lemburg
mal at egenix.com
Thu May 22 21:09:25 CEST 2008
On 2008-05-22 19:52, Stephen J. Turnbull wrote:
> M.-A. Lemburg writes:
> > On 2008-05-22 13:58, Antoine Pitrou wrote:
> > > M.-A. Lemburg <mal <at> egenix.com> writes:
> > >> It's all a matter of perspective. You can say you're encoding Latin-1
> > >> to Unicode, or you can say your encoding Unicode to Latin-1.
> > >
> > > Except that Latin-1 is an encoding while Unicode is not.
> >
> > Well, yes and no :-)
> >
> > Unicode does encode a way to describe code points.
>
> I don't think this is a useful POV in the context of Python, where
> 'unicode' is a primitive type, and not implemented as an array of
> (Python) integers.
Agreed.
I was just explaining where the whole notion of encoding
and decoding originates and how the meaning of the .encode()
and .decode() methods came to be.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, May 22 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-3000
mailing list