[ python-Bugs-1026038 ] "ASCII" in doc section "String literals"

SourceForge.net noreply at sourceforge.net
Sat Sep 11 17:08:58 CEST 2004


Bugs item #1026038, was opened at 2004-09-10 20:52
Message generated for change (Comment added) made by felixwiemann
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1026038&group_id=5470

Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Felix Wiemann (felixwiemann)
Assigned to: Nobody/Anonymous (nobody)
Summary: "ASCII" in doc section "String literals"

Initial Comment:
Section '2.4.1 String literals' says that
shortstringchar and longstringchar are ASCII
characters.  This is wrong, however, because non-ASCII
characters are allowed as well.

The documentation of \xhh and \ooo (in the same
section) says that they represent ASCII characters.  It
seems to me that they actually represent ISO-8859-1
characters (which is important if these escape
sequences occur in a unicode string literal).  Is that
the intended behavior, by the way?  Shouldn't it rather
depend on the  -*- coding -*- of the source file?

Maybe also add a reference to PEP 263?

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

>Comment By: Felix Wiemann (felixwiemann)
Date: 2004-09-11 17:08

Message:
Logged In: YES 
user_id=1014490

> The documentation of \xhh and \ooo (in the same
> section) says that they represent ASCII characters. It
> seems to me that they actually represent ISO-8859-1
> characters (which is important if these escape
> sequences occur in a unicode string literal).

Correction: They represent bytes in normal strings and
\u00xx in unicode strings.

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

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


More information about the Python-bugs-list mailing list