Comment #3 on issue 2458 by asmeurer: recursion error with highly nested Functions
http://code.google.com/p/sympy/issues/detail?id=2458
Yeah, it would happen with any highly nested expression. This is because of the recursive way that our printer is written (using method dispatch on the printer objects). The only way I see to fix this is to rewrite the printer to manually use its own stack rather than the built-in function call stack. This wouldn't be too difficult for the str printer (just push a bunch of strings to the stack and then concatenate them), but I don't know how the pretty printer works well enough to know if it would be easy to do for that too. It would have to keep track of a lot of hight and width measurements on the stack at the very least, and maybe some more stuff too (?)
-- 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.
