Amaury Forgeot d'Arc added the comment:

So the recursion crash was fixed in python3,
but it's still one of the limits of the Python AST compiler.

I suggest to replace your long expression by a list:
  exprs = [(1-a36)*(a37)*(1-a41), (a22)*(a33)*(1-a23), ...]
  return sum(exprs)

...but this function requires large storage at runtime, on the Python stack, 
and for the list.
Maybe better:
  loopcount = 0
  loopcount += (1-a36)*(a37)*(1-a41)
  ...
  return loopcount

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23643>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to