Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48943
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'explicitly': 0.05; 'string': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'reference:': 0.09; 'subject:question': 0.10; 'python': 0.11; 'concatenate': 0.16; 'janssen': 0.16; 'lexer': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'undefined.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'lines': 0.31; 'probably': 0.32; 'text': 0.33; 'url:python': 0.33; 'there': 0.35; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:3': 0.61; 'simply': 0.61; 'within': 0.65; 'received:204': 0.75; 'behavior': 0.77; 'article': 0.77; 'received:204.14': 0.84; 'url:reference': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Ned Deily <nad@acm.org> |
| Subject | Re: n00b question on spacing |
| Date | Sat, 22 Jun 2013 12:34:11 -0700 |
| References | <CAJ=2b07ETuSuo2+3Xu6vMOJA+q1JwUFTezO3LaYLG8wXd+FLBQ@mail.gmail.com> <24094189.2779.1371851333304.JavaMail.rgacote@ip-225.appropriatesolutions.com> <CAMjeLr9iQ2Yg_YF0cSD2a9fK5upSgK42wZeNN9R8Ee2-rWKzGA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 204.14.154.191 |
| User-Agent | MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3705.1371929669.3114.python-list@python.org> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1371929669 news.xs4all.nl 15866 [2001:888:2000:d::a6]:46305 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:48943 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: n00b question on spacing Ned Deily <nad@acm.org> - 2013-06-22 12:34 -0700
csiph-web