I just fixed it in the patch on #7496:
sage: var('2x')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/home/vbraun/opt/sage-4.7.1.alpha2/devel/sage-main/<ipython console> in
<module>()
/home/vbraun/Sage/sage/local/lib/python2.6/site-packages/sage/calculus/var.so
in sage.calculus.var.var (sage/calculus/var.c:687)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-packages/sage/symbolic/ring.so
in sage.symbolic.ring.SymbolicRing.var (sage/symbolic/ring.cpp:6276)()
/home/vbraun/Sage/sage/local/lib/python2.6/site-packages/sage/symbolic/ring.so
in sage.symbolic.ring.SymbolicRing.var (sage/symbolic/ring.cpp:6048)()
ValueError: The name "2x" is not a valid Python identifier.
sage:
--
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
URL: http://www.sagemath.org