Breaking up a common import cycle

17 views
Skip to first unread message

Joachim Durchholz

unread,
Feb 15, 2015, 3:40:12 AM2/15/15
to sy...@googlegroups.com
During my attempts at C elimination, I see that atan2 is involved in
many potential import cycles.
Of these, most if not all can be broken up by splitting up
sympy.functions.elementary.trigonometric , e.g. by splitting off
sympy.functions.elementary.trigonometric_inverses.

Such a split is not a guarantee that it will prevent all present or
future atan2 cycles, because there's always the possibility of mutual
recursion between modules.
The alternate approach would be to use a local import, or a bottom import.

I'd prefer to split the module in this case, because it's a reasonable
module boundary anyway.
What do others think?
Reply all
Reply to author
Forward
0 new messages