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
>
>
> "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
"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