On 4 Mrz., 08:35, Jason Grout <jason-s...@creativetrax.com> wrote: > But you could do this: > > sage: alpha=var("α") > sage: alpha > α
Sure one could. But the point is that var is supposed to insert the variable into the global name space, under the given name. What about the following idea: 1. var(s) only accept strings and lists of strings, and for backwards compatibility one could also make it accept objects whose string representation does not contain commas or whitespace. So, var(QQ['t'].gen()) is fine, but with input like var(QQ['t']), an error is raised. 2. If the input is a valid identifier (all ascii) and not a reserved Python keyword, it will be inserted into the global namespace. 3. Otherwise, a variable with the given name is returned, but *not* put into the global namespace. We may think of printing a warning message in that case. In that way, alpha=var("α") would still work. Cheers, Simon -- 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