Hi, I am trying to write a subclass of the class of hypereliptic curves over QQ, for example:
class test (sage.schemes.hyperelliptic_curves.hyperelliptic_rational_field.HyperellipticCurve_rational_field): def __init__(self,C): self.C = C then in sage I type R.<x> = QQ[] H = HyperellipticCurve(x^9+1) test(H) the last lline gives a long string of error traceback ending ... /usr/local/sage/sage-4.2/local/lib/python/pprint.pyc in _safe_repr (object, context, maxlevels, level) 318 return format % _commajoin(components), readable, recursive 319 --> 320 rep = repr(object) 321 return rep, (rep and not rep.startswith('<')), False 322 /usr/local/sage/sage-4.2/local/lib/python2.6/site-packages/sage/ structure/sage_object.so in sage.structure.sage_object.SageObject.__repr__ (sage/structure/ sage_object.c:1416)() /usr/local/sage/sage-4.2/local/lib/python2.6/site-packages/sage/ schemes/hyperelliptic_curves/hyperelliptic_generic.pyc in _repr_(self) 93 """ 94 ---> 95 f, h = self._hyperelliptic_polynomials 96 R = self.base_ring() 97 y = self._printing_ring.gen() AttributeError: 'test' object has no attribute '_hyperelliptic_polynomials' I am not sure what to do about this, any help will be much appreciated. Thank you, David Holmes --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---