Re: line continuation for lines ending in "and" or "or"

2008-06-05 Thread Paul Boddie
On 5 Jun, 22:40, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > A line ending in an operator is ambiguous in that it *could* indicate that > the programmer intends to continue on the next line while it also could > indicate that the programmer forgot to finish before hitting return, or > that somethi

Re: line continuation for lines ending in "and" or "or"

2008-06-05 Thread Terry Reedy
"Russ P." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |. Well, it wouldn't be a bad idea for Python to do | what I thought it did, *plus* what I said it ought to do. A line ending in an operator is ambiguous in that it *could* indicate that the programmer intends to continue on

Re: line continuation for lines ending in "and" or "or"

2008-06-05 Thread Larry Bates
Dennis Lee Bieber wrote: On Wed, 4 Jun 2008 21:50:19 -0700 (PDT), "Russ P." <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Darnit! You're right. I've been reading up on Scala lately, and I guess I got confused. Well, it wouldn't be a bad idea for Python to do what I thought it

Re: line continuation for lines ending in "and" or "or"

2008-06-05 Thread Tim Roberts
Dan Bishop <[EMAIL PROTECTED]> wrote: >On Jun 4, 10:09 pm, "Russ P." <[EMAIL PROTECTED]> wrote: >> I've always appreciated Python's lack of requirement for a semi-colon >> at the end of each line. I also appreciate its rules for automatic >> line continuation. If a statement ends with a "+", for ex

Re: line continuation for lines ending in "and" or "or"

2008-06-04 Thread Russ P.
On Jun 4, 9:01 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > On Jun 4, 10:09 pm, "Russ P." <[EMAIL PROTECTED]> wrote: > > > I've always appreciated Python's lack of requirement for a semi-colon > > at the end of each line. I also appreciate its rules for automatic > > line continuation. If a statemen

Re: line continuation for lines ending in "and" or "or"

2008-06-04 Thread Dan Bishop
On Jun 4, 10:09 pm, "Russ P." <[EMAIL PROTECTED]> wrote: > I've always appreciated Python's lack of requirement for a semi-colon > at the end of each line. I also appreciate its rules for automatic > line continuation. If a statement ends with a "+", for example, Python > recognizes that the statem

line continuation for lines ending in "and" or "or"

2008-06-04 Thread Russ P.
I've always appreciated Python's lack of requirement for a semi-colon at the end of each line. I also appreciate its rules for automatic line continuation. If a statement ends with a "+", for example, Python recognizes that the statement obviously must continue. I've noticed, however, that the sam