Opened 9 months ago

Closed 8 months ago

#30256 closed defect (duplicate)

Stein-Watkins database iterator not working (9.1)

Reported by: kimball Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: packages: optional Keywords: Stein-Watkins database
Cc: alexjbest Merged in:
Authors: Reviewers: Markus Wageringel
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

There appears to be an issue with the iterator for the Stein-Watkins database in Sage 9.1 the second time I use next. See I/O below attempting to follow example from documentation:

sage: version()
'SageMath version 9.1, Release Date: 2020-05-20'
sage: d = SteinWatkinsAllData(0)
sage: C = next(d)
sage: C
Stein-Watkins isogeny class of conductor 11
sage: next(d)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-101-9b2daf1403f5> in <module>()
----> 1 next(d)

/Applications/SageMath/local/lib/python3.7/site-packages/sage/databases/stein_watkins.py in __next__(self)
    240 
    241     def __next__(self):
--> 242         return next(self._iter)
    243 
    244     next = __next__

/Applications/SageMath/local/lib/python3.7/site-packages/sage/databases/stein_watkins.py in __iter__(self)
    226                     yield C
    227                 x = L.split()
--> 228                 N = int(x[0])
    229                 C = SteinWatkinsIsogenyClass(N)
    230                 C.rank = int(x[2])

ValueError: invalid literal for int() with base 10: b'[0,-1,1,0,0]'

If it matters, I am running this on macOS 10.15.5 using a prebuilt binary.

Change History (4)

comment:1 Changed 9 months ago by mkoeppe

dup of #28816

comment:2 Changed 8 months ago by mkoeppe

  • Cc alexjbest added
  • Milestone changed from sage-9.2 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

comment:3 Changed 8 months ago by gh-mwageringel

  • Reviewers set to Markus Wageringel
  • Status changed from needs_review to positive_review

comment:4 Changed 8 months ago by chapoton

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.