Opened 12 years ago

Closed 12 years ago

#7366 closed defect (fixed)

fix GF(4,'a').list()

Reported by: malb Owned by: AlexGhitza
Priority: major Milestone: sage-4.2.1
Component: basic arithmetic Keywords:
Cc: Merged in: sage-4.2.1.alpha0
Authors: Martin Albrecht Reviewers: Rob Beezer
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by rbeezer)

This should work:

sage: K.<a>=GF(4)
sage: [x for x in K]
[0, a, a + 1, 1]
sage: hasattr(K, '__iter__')
True
sage: K.list()
...
TypeError:
'sage.rings.finite_field_givaro.FiniteField_givaro_iterator' object is not iterable

Attachments (1)

finite_field_givaro_iter.patch (1.7 KB) - added by malb 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by malb

comment:1 Changed 12 years ago by malb

  • Status changed from new to needs_review

comment:2 Changed 12 years ago by rbeezer

  • Description modified (diff)
  • Reviewers set to Rob Beezer
  • Status changed from needs_review to positive_review

Builds on 4.2, fixes the problem, passes all tests.

Positive review.

comment:3 Changed 12 years ago by mhansen

  • Merged in set to sage-4.2.1.alpha0
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.