Re: [sage-devel] Python's end statement

2010-06-23 Thread Alex Ghitza
On Wed, 23 Jun 2010 16:12:45 -0700 (PDT), Rob Beezer wrote: > "Python doesn't have an "end" statement!", I hear you say. > > Try in the notebook, as a colleague new to Sage basically did with a > more serious purpose, > > a = 3 > if a == 1: > a = a+1 > else: > a = 6 > end > a += 1 > >

Re: [sage-devel] Python's end statement

2010-06-23 Thread Tom Boothby
> "end" is a Sage function that constructs an endomorphism.  So the > "statement" above is harmless.  Is this enough reason to give this > function a new, less-confusion-causing name? Nope. Newbies will make mistakes, we can't avoid 'em all (or bend over backwards for many). I think end is a per

[sage-devel] Python's end statement

2010-06-23 Thread Rob Beezer
"Python doesn't have an "end" statement!", I hear you say. Try in the notebook, as a colleague new to Sage basically did with a more serious purpose, a = 3 if a == 1: a = a+1 else: a = 6 end a += 1 "end" is a Sage function that constructs an endomorphism. So the "statement" above is har