Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31666 > unrolled thread
| Started by | Dave Angel <d@davea.name> |
|---|---|
| First post | 2012-10-18 13:09 -0400 |
| Last post | 2012-10-18 13:09 -0400 |
| 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.
Re: A desperate lunge for on-topic-ness Dave Angel <d@davea.name> - 2012-10-18 13:09 -0400
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2012-10-18 13:09 -0400 |
| Subject | Re: A desperate lunge for on-topic-ness |
| Message-ID | <mailman.2456.1350580204.27098.python-list@python.org> |
On 10/18/2012 12:58 PM, Chris Kaynor wrote: > On Thu, Oct 18, 2012 at 9:47 AM, Dave Angel <d@davea.name> wrote: > >> <SNIP> >> But both C++ and Python have automatic concatenation of adjacent >> strings. So you can just start and end each line with a quote, and >> leave off the backslash. >> > That will work in C++ as the statements won't terminate on new-line (only > on semi-colon), however in Python that won't work as the statement > will terminate at the end of the line. You can get around this by wrapping > the multiple strings inside of parentheses. > > You're right of course. As it happens, i tested my "remembery" with a function call (print, in Python 3) , so I already had the parens. -- DaveA
Back to top | Article view | comp.lang.python
csiph-web