If you use the class MyParent(Parent) Element = MyElement
syntax then you have to import MyElement. So you shouldn't import MyParent in your element code or you will create a cyclic import (=bad). Are you sure that you need to create new parents from the element? Your element should only work with the parent that it is an element of. New Parents are generally constructed by coercion, but the coercion code lives in MyParent. If all fails you can still do a method-level import. But its likely that you should not. On Friday, November 9, 2012 1:13:20 PM UTC-5, Charles Bouillaguet wrote: > > Hi, > > Why does adding : > > from sage.rings.polynomial.polynomial_ring_constructor import > PolynomialRing > > at the beginning of quotient_ring_element.py create the weird error: > > Traceback (most recent call last): > … > AttributeError: 'module' object has no attribute 'quotient_ring' > > Is there a circular dependency problem? If so, how can I possibly create > polynomial rings inside quotient_ring_element ??? > > Cheers, > ---- > Charles Bouillaguet > http://www.lifl.fr/~bouillaguet/ -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en.