[Python-bugs-list] [ python-Bugs-453728 ] Tutorial: string lits & cont. lines
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 06 Sep 2001 11:44:33 -0700
Bugs item #453728, was opened at 2001-08-21 06:57
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=453728&group_id=5470
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Fred L. Drake, Jr. (fdrake)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Tutorial: string lits & cont. lines
Initial Comment:
The text on string literals and continuation lines
(esp. the example) assumes a good understanding of how
string literals and continuation lines work in C; this
needs to be clarified programmers with no experience in
C-like languages.
(Based on a comment sent to python-docs.)
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-09-06 11:44
Message:
Logged In: YES
user_id=3066
Clarified interaction of continuation lines and string
literals in Doc/tut/tut.tex revision 1.149.
It's not clear that there's actually a problem relating to
the tokenization comment added anonymously.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-08-27 07:28
Message:
Logged In: NO
I don't remember what the tutorial said but cont. lines
work differently in python than C and I don't see the
reason. For example it would be nice to split integer
literals, like:
a=123\
456\
78L
If the number is large (100's of digits) it's nice to be
able to split it across several lines. Of course one could
enter it as a string split across several lines, but that
makes the .pyc file larger since the strings will appear in
it rather than the marshalled long int.
(This example is from a comp.lang.python discussion).
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=453728&group_id=5470