On Wed, Mar 2, 2011 at 1:57 PM, Jason Grout <jason-s...@creativetrax.com> wrote: > On 3/2/11 2:37 PM, Robert Bradshaw wrote: >> >> On Wed, Mar 2, 2011 at 10:03 AM, D. S. McNeil<dsm...@gmail.com> wrote: >>>>> >>>>> For what reason is var(s) not raising an error if not s.isalnum()? >>>> >>>> People might want to use utf-8 strings which won't be valid under that >>>> condition. >>> >>> Even "x_1" fails an alnum check. >> >> It would make sense to exclude some punctuation though, parentheses, >> brackets, spaces, arithmetic operators, periods... Surely there's some >> sense of alpha-numeric for unicode, plus underscores. > > How about just following the Python convention for identifiers, minus the > keywords: > > http://docs.python.org/reference/lexical_analysis.html#identifiers
+1 -- 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