Python strings and coding conventions
roy at panix.com
Sun Jan 11 19:12:16 CET 2009
<5db6181f-d6f6-4bdc-88c8-e12ad228c105 at r41g2000prr.googlegroups.com>,
Mensanator <mensanator at aol.com> wrote:
> > What are all those line continuation characters ('\') for? ?You are aware
> > that they are unnecessary here?
> Actually, I wasn't aware of that. A quick review shows
> why. In the old manuals, implicit line continuation
> was in a seperate chapter (2.1.6) from implicit (2.1.5)
> so if you didn't read past 2.1.5 you would have missed it.
My philosophy about line continuation is to assume lines can be continued
after just about any piece of punctuation. If I'm wrong, the computer will
tell me, and then I make the computer happy by adding a \. It's easier
than looking it up, and way easier than memorizing the details.
More information about the Python-list