On Mar 6, 2008, at 5:56 PM, Hector Villafuerte wrote:

>
>>  On Thu, Mar 6, 2008 at 12:53 PM, Jason Grout
>>  <[EMAIL PROTECTED]> wrote:
> ...
>>>  What does "reserved words" mean?  Do you mean that we should  
>>> throw an
>>>  error when those variables are assigned?  I don't think that  
>>> would be
>>>  possible without some deep tinkering in python.
>
>
> Hi Jason,
> Yep, that's what I meant (reserved words, aka keywords); to expect
> behavior like this:
>
> sage: lambda = 5
> Syntax Error:
>     lambda = 5

That one *does* currently give a syntax error, because lambda really  
is a python keyword. But there aren't too many python keywords. Off  
the top of my head:

for
in
not
and
or
is
yield
raise
finally
except
return
pass
import
if
while
print
def
lambda

Well that was a fun game..... like trying to name all the 50 states  
in the U.S.....

david


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to