Hello,

What should we do with variable names like 'or', 'and', ... This does
not break uniformly

The symbolic ring refuses the creation of such variable
{{{
sage: SR.var('and')
Traceback (most recent call last):
...
ValueError: The name "and" is not a valid Python identifier.
}}}

whereas polynomial rings silently fail
{{{
sage: R = PolynomialRing(QQ, ('and', 'or'))
sage: R.inject_variables()
Defining and, or
sage: and
...
SyntaxError: invalid syntax
sage: 'and' in globals()
True
}}}

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to