Comment #1 on issue 2822 by [email protected]: Move preorder_traversal to the core
http://code.google.com/p/sympy/issues/detail?id=2822
For that, preorder_traversal needs to be moved to sympy.core.basic.
Why is this? Is it a technical need, or just because it makes more sense to be near the code that uses it?
so they could be deprecated and their use replaced with direct calls to preorder_traversal().
I'm -1 to this, at least for the last two, because even though the implementation may be a one-liner, it may not be clear to a user how to do it.
"x in expr.atoms()" becomes "x in expr.iterall()".
Not exactly: In [117]: (1 + sin(x)).atoms() Out[117]: set(1, x) In [118]: list(preorder_traversal(1 + sin(x))) Out[118]: [sin(x) + 1, 1, sin(x), x] expr.atoms() is a shortcut to expr.atoms(Atom). -- 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.
