On Tuesday 29 May 2007 23:50, William Stein wrote:
> > Is there a global
> > toggle to turn on/off this behavior? I can see the value of this in an
> > interactive setting, but when programming I would sometimes rather get
> > an error when trying to refer to a previously undefined object.
>
> There is currently no function to clear these,
> so I just wrote one.   The attached patch adds a function clear_vars()
> that when called removes all 1-letter symbolic variables that are
> currently defined.

I absolutely agree with the OP that these predefined things are not the right 
way to go for a programming environment.   Wouldn't it be reasonable to cause 
these one letter variables to be defined at the same point in the sage script 
where you start IPython?  I think the same logic might apply to other things 
as well.

I realize that if you have perfect spelling in your scripts and are perfectly 
anal about getting your variables defined before you use them, this makes no 
difference whatsoever, but...

--
Joel

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to