[Python-bugs-list] [ python-Bugs-773351 ] Dubious use of Unicode literals in tutorial

SourceForge.net noreply@sourceforge.net
Fri, 18 Jul 2003 02:54:23 -0700


Bugs item #773351, was opened at 2003-07-18 02:10
Message generated for change (Comment added) made by ghaering
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=773351&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
>Priority: 1
Submitted By: Gerhard Häring (ghaering)
Assigned to: Martin v. Löwis (loewis)
Summary: Dubious use of Unicode literals in tutorial

Initial Comment:
"3.1.3 Unicode Strings" contains:

>>> u"äöü"
u'\xe4\xf6\xfc'

It looks like latin1 is used as encoding for this
Unicode literal. This is, however, neither justified by
the Python language specification nor by common sense ;-)

I'd suggest that this be changed in the tutorial.

Furthermore I'd suggest that such use of Unicode
literals throw errors instead.

I'm assigning it to Martin, because he's one of the
Unicode gurus :)

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

>Comment By: Gerhard Häring (ghaering)
Date: 2003-07-18 11:54

Message:
Logged In: YES 
user_id=163326

I *do* get the warnings when executing scripts, but I do
*not* get the warnings at the interactive prompt. Lowering
priority accordingly. Feel free to close this if this is
indeed the intended behaviour.

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

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