Opened 11 years ago
Closed 9 years ago
#7929 closed defect (duplicate)
Pickling fails for some residue fields
Reported by: | nthiery | Owned by: | davidloeffler |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | number fields | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | David Roe | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
Caught with #7921; please write patch on top of it to avoid conflicts.
sage: K.<a> = NumberField(x^3-17) sage: P = K.ideal(29).factor()[0][0] sage: k = K.residue_field(P) # indirect doctest sage: F = ZZ.residue_field(17) # indirect doctest sage: loads(dumps(k)) ------------------------------------------------------------ Traceback (most recent call last): File "<ipython console>", line 1, in <module> File "sage_object.pyx", line 740, in sage.structure.sage_object.dumps (sage/structure/sage_object.c:8021) File "ring.pyx", line 2424, in sage.rings.ring.FiniteField.__reduce__ (sage/rings/ring.c:12853) TypeError: 'NoneType' object is unsubscriptable sage: loads(dumps(k.an_element())) ------------------------------------------------------------ Traceback (most recent call last): File "<ipython console>", line 1, in <module> File "sage_object.pyx", line 740, in sage.structure.sage_object.dumps (sage/structure/sage_object.c:8021) File "ring.pyx", line 2424, in sage.rings.ring.FiniteField.__reduce__ (sage/rings/ring.c:12853) TypeError: 'NoneType' object is unsubscriptable sage: loads(dumps(F)) ------------------------------------------------------------ Traceback (most recent call last): File "<ipython console>", line 1, in <module> File "sage_object.pyx", line 740, in sage.structure.sage_object.dumps (sage/structure/sage_object.c:8021) File "ring.pyx", line 2424, in sage.rings.ring.FiniteField.__reduce__ (sage/rings/ring.c:12853) TypeError: 'NoneType' object is unsubscriptable sage: loads(dumps(F.an_element())) ------------------------------------------------------------ Traceback (most recent call last): File "<ipython console>", line 1, in <module> File "sage_object.pyx", line 740, in sage.structure.sage_object.dumps (sage/structure/sage_object.c:8021) File "ring.pyx", line 2424, in sage.rings.ring.FiniteField.__reduce__ (sage/rings/ring.c:12853) TypeError: 'NoneType' object is unsubscriptable
Change History (5)
comment:1 Changed 11 years ago by
- Description modified (diff)
comment:2 Changed 9 years ago by
- Milestone set to sage-duplicate/invalid/wontfix
comment:3 Changed 9 years ago by
- Status changed from new to needs_review
comment:4 Changed 9 years ago by
- Status changed from needs_review to positive_review
comment:5 Changed 9 years ago by
- Resolution set to duplicate
- Reviewers set to David Roe
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
This works in 4.7.2.