Dear Robert,

On Mar 19, 4:01 am, Robert Bradshaw <[email protected]>
wrote:
> I would guess you have a circular import issue going on here when you
> try to put it in the Sage library. Unfortunately, I don't have an
> easy solution other than trying to be very careful about what you are
> importing in your files.

How can a cycle be avoided? Perhaps I could try to import only the
very essentials at the beginning of the file, and to have the
remaining import statements only inside the methods. E.g., when I
construct a polynomial ring in a method ``foo``, I could import ``from
sage.rings.polynomial.polynomial_ring_constructor import
PolynomialRing`` there, rather than on module level.

Does this make sense?
Thank you!
       Simon
--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to