[ python-Bugs-1026038 ] "ASCII" in doc section "String literals"
SourceForge.net
noreply at sourceforge.net
Tue Sep 14 09:52:48 CEST 2004
Bugs item #1026038, was opened at 2004-09-10 20:52
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1026038&group_id=5470
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
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: Martin v. Löwis (loewis)
Date: 2004-09-14 09:52
Message:
Logged In: YES
user_id=21627
Thanks for your report. Fixed in ref2.tex 1.55
----------------------------------------------------------------------
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