Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48943 > unrolled thread

Re: n00b question on spacing

Started byNed Deily <nad@acm.org>
First post2013-06-22 12:34 -0700
Last post2013-06-22 12:34 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: n00b question on spacing Ned Deily <nad@acm.org> - 2013-06-22 12:34 -0700

#48943 — Re: n00b question on spacing

FromNed Deily <nad@acm.org>
Date2013-06-22 12:34 -0700
SubjectRe: n00b question on spacing
Message-ID<mailman.3705.1371929669.3114.python-list@python.org>
In article 
<CAMjeLr9iQ2Yg_YF0cSD2a9fK5upSgK42wZeNN9R8Ee2-rWKzGA@mail.gmail.com>,
 Mark Janssen <dreamingforward@gmail.com> wrote:
> > Also remember when entering long lines of text that strings concatenate
> > within parenthesis.
> > So,
> > ("a, b, c"
> > "d, e, f"
> > "g, h, i")
> >
> > Is the same as ("a, b, cd, e, fg, h, i") 
> There was a recent discussion about this (under "implicit string
> concatenation").  It seems this is a part of the python language
> specification that was simply undefined.   (A rule probably should be
> added to the lexer to make this explicit.)

This behavior is explicitly defined in the Python Language Reference:

http://docs.python.org/3/reference/lexical_analysis.html#string-literal-c
oncatenation

-- 
 Ned Deily,
 nad@acm.org

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web