Le Fri, 11 May 2012 07:16:35 +0000 (UTC), Simon King <simon.k...@uni-jena.de> a écrit :
> Hi, > > On 2012-05-11, Keshav Kini <keshav.k...@gmail.com> wrote: > > kcrisman <kcris...@gmail.com> writes: > >> To be clear, are you complaining about defining *only* x or that x > >> *is*, in fact, predefined? In any case, this is a discussion we > >> probably don't need to rehash now, granted that there will never be > >> peace between the Python purists and Maple wannabes. > > > > That x *is*, in fact, predefined. It misleads the user into > > expecting that other variable names will also be predefined, > > whereas in fact they are not. > > IIRC, the canonical answer to the request "do not predefine x" is: > "That's not gonna happen, because way too many people expect to have a > variable x handy." > > Anyway. > > I don't like pre-defining x either. Would the following be possible -- instead of : <<< sage: y --------------------------------------------------------------------------- NameError Traceback (most recent call last) /home/jpuydt/sage-5.0.beta14/<ipython console> in <module>() NameError: name 'y' is not defined >>> have : <<< sage: y --------------------------------------------------------------------------- NameError Traceback (most recent call last) /home/jpuydt/sage-5.0.beta14/<ipython console> in <module>() NameError: name 'y' is not defined -- perhaps you need to type var('y') first ? >>> ? That way sage still doesn't define things in the user's back, which would cause problems, as already mentioned in this thread -- but newcomers wouldn't get stuck needlessly either. Snark on #sagemath -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org