Changes between Version 3 and Version 4 of Ticket #12518


Ignore:
Timestamp:
Feb 18, 2012, 3:55:16 PM (11 years ago)
Author:
Vincent Delecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12518

    • Property Status changed from new to needs_review
  • Ticket #12518 – Description

    v3 v4  
    1 Implementation of a set (using the category framework) from a function that returns an iterator. Building a set directly from an iterator leads to the impossibility of pickling.
     1Implementation of a set (using the category framework) from a function that returns an iterator as in
     2{{{
     3sage: from sage.sets.set_from_iterator import EnumeratedSetFromIterator
     4sage: E = EnumeratedSetFromIterator(graphs)
     5{Graph on 0 vertices, Graph on 1 vertex, Graph on 2 vertices, Graph on 2 vertices, Graph on 3 vertices, Graph on 3 vertices, ...}
     6}}}
     7Note that in order to be able to pickle, we do not build directly a set from an iterator.
    28
    39A previous implementation in sage-combinat was CombinatorialClassFromIterator (in sage.combinat.combinat) which is now deprecated.