Updates:
        Labels: NeedsReview smichr

Comment #9 on issue 1002 by asmeurer: Symbol('') does not raise an Exception
http://code.google.com/p/sympy/issues/detail?id=1002

'^[a-zA-Z_][a-zA-Z_0-9]*$' doesn't technically represent all valid Python identifiers, since it doesn't take into account several reserved words.

But for what it's worth, I don't think we should disallow those. Disallowing Symbol('lambda') would be particularly unpopular. In fact, I really don't see the problem with something like Symbol('3'), and I could easily see something like Symbol('3d') being useful.

Whitespace Symbols are another issue (including the empty string). I don't have a problem with those not being allowed. On the other hand, they probably wouldn't cause any problems, other than strange printing.

symbols() on the other hand, probably should not allow whitespace symbols, since that's a delimiter (the same for commas).

This relates to https://github.com/sympy/sympy/pull/417.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
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/sympy-issues?hl=en.

Reply via email to