Opened 6 years ago

Closed 6 years ago

#14827 closed defect (fixed)

Unpickling of matroids sometimes fails

Reported by: Stefan Owned by: sage-combinat
Priority: major Milestone: sage-5.12
Component: combinatorics Keywords:
Cc: yomcat Merged in: sage-5.12.beta1
Authors: Stefan van Zwam Reviewers: Michael Welsh
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #7477 Stopgaps:

Description

Trying to load a previously saved matroid fails when the lazy_import statements have not yet been resolved.

To reproduce:

sage: Q6 = matroids.named_matroids.Q6()
sage: Q6.save("Q6.sobj")

Exit Sage, restart, then

sage: Q6 = load("Q6.sobj")

The loading fails.

Attachments (1)

trac_14827_move_unpickling.patch (45.2 KB) - added by Stefan 6 years ago.
Move matroid's unpickling functions

Download all attachments as: .zip

Change History (8)

comment:1 Changed 6 years ago by Stefan

  • Dependencies set to 7477

Changed 6 years ago by Stefan

Move matroid's unpickling functions

comment:2 Changed 6 years ago by Stefan

  • Authors set to Stefan van Zwam
  • Status changed from new to needs_review

Added a patch solving the issue.

comment:3 Changed 6 years ago by Stefan

apply trac_14827_move_unpickling.patch

comment:4 Changed 6 years ago by yomcat

  • Reviewers set to Michael Welsh
  • Status changed from needs_review to positive_review

This does fix the issue.

comment:5 Changed 6 years ago by yomcat

  • Dependencies changed from 7477 to #7477

comment:6 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:7 Changed 6 years ago by jdemeyer

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