On Tue, Feb 9, 2010 at 12:18 PM, David Roe <r...@math.harvard.edu> wrote: > K.<a> = GF(9) > K.<TAB> > is also broken. > > But it's not just parents: > ZZ.<TAB> works > > and it's not just the .<a> syntax: > R.<p> = Qp(5) > R.<TAB> works > David
The problem might be the lack of a __dict__ attribute: sage: P.<x,y> = QQ[] sage: dir(P) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /home/wstein/sage/spkg/standard/<ipysage: P.<x,y> = QQ[]thon console> in <module>() /home/wstein/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in sage.structure.parent.Parent.__dir__ (sage/structure/parent.c:5205)() /home/wstein/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in sage.structure.parent.dir_with_other_class (sage/structure/parent.c:3176)() /home/wstein/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:5138)() http://trac.sagemath.org/sage_trac/ticket/8223 /home/wstein/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in sage.structure.parent.raise_attribute_error (sage/structure/parent.c:2599)() AttributeError: 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular' object has no attribute '__dict__' sage: dir(ZZ) ['Hom', '__an_element', '__call__', ' This is caused by Nick Thiery's patch from trac 7921 which very badly defines a __dir__ method for parents: changeset: 13746:6ad207aca83f user: Nicolas M. Thiery <nthi...@users.sf.net> date: Fri Jan 22 22:53:29 2010 +0100 summary: #7921: Categories for extension types via __getattr___ This is now trac #8223: http://trac.sagemath.org/sage_trac/ticket/8223 It's critical that we issue a quick Sage-4.3.2.1 bugfix release! William -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org