Obsolesence of <> (fwd)

Tim Peters tim.one at home.com
Fri Jun 1 02:09:04 EDT 2001


[Lulu of the Lotus-Eaters]
> Huh?  What does Unicode have to do with anything?  The below works fine,
> for example:
>
>  Python 2.0.42-S1.2.23 (#0, Apr 25 2001, 20:59:49) [GNU C/C++] on os2
>  Type "copyright", "credits" or "license" for more information.
>  >>> x = u"spam"
>  >>> y = "spam"
>  >>> z = 1+1j
>  >>> w = u"eggs"
>  >>> x < y
>  0
>  >>> x < z
>  0
>  >>> x < w
>  0


>>> chr(128) < u"a"
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
UnicodeError: ASCII decoding error: ordinal not in range(128)
>>>





More information about the Python-list mailing list