#4755: CremonaDatabase().number_of_curves() should work when the optional
database
isn't installed.
---------------------+------------------------------------------------------
Reporter: mhansen | Owner: cwitty
Type: defect | Status: new
Priority: minor | Milestone: sage-3.2.2
Component: misc | Keywords:
---------------------+------------------------------------------------------
{{{
sage: CremonaDatabase().number_of_curves()
---------------------------------------------------------------------------
KeyError Traceback (most recent call
last)
/home/mike/.sage/temp/mike_laptop/12400/_home_mike__sage_init_sage_0.py in
<module>()
----> 1
2
3
4
5
/opt/sage/local/lib/python2.5/site-packages/sage/databases/cremona.pyc in
number_of_curves(self, N, i)
680 """
681 if N == 0:
--> 682 return self['number_of_curves']
683 C = self.allcurves(N)
684 if i == 0:
/opt/sage/local/lib/python2.5/site-packages/sage/databases/cremona.pyc in
__getitem__(self, N)
345 if isinstance(N, str) and len(N) > 0:
346 if N[0].isalpha():
--> 347 return
sage.databases.db.Database.__getitem__(self, N)
348 else:
349 return self.elliptic_curve(N)
/opt/sage/local/lib/python2.5/site-packages/sage/databases/db.pyc in
__getitem__(self, x)
258 try:
259 if not isinstance(x, slice):
--> 260 return self.root[x]
261 return [self[k] for k in range(x.start, x.stop,
x.step)]
262 except AttributeError:
KeyError: 'number_of_curves'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4755>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---