Would it require the ast module? That is only available on 2.6+. But that's better than nothing. 1/2 vs. S(1)/2 is by far the number one gotcha that I see.
Aaron Meurer On Thu, May 12, 2011 at 4:21 PM, Ondrej Certik <ond...@certik.cz> wrote: > On Thu, May 12, 2011 at 3:16 PM, Aaron Meurer <asmeu...@gmail.com> wrote: >> I'm undecided if it should be done in isympy. Maybe there should at >> least be an option. > > I think we should do it as an option, yes. And we can start using it, > as an option and see how it goes. > >> As for how to do it, can sympify be extended to parse any python >> expression (like can we make S("for i in range(10): print i") work)? > > Yes, I think it can, as long as AST trees are used (as they are > already in sympify). The only problem with that is that it will not > work on the google app engine (they don't provide the "parser" module > there), but apart from that, it should work. > > Ondrej > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sympy@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.