On Jun 1, 12:44 am, "Nicolas M. Thiery" <[email protected]> wrote: > Hi John! > > > > > > On Mon, May 31, 2010 at 10:00:15PM -0700, John H Palmieri wrote: > > One of the examples in the docstring for DisjointUnionEnumeratedSet > > goes something like this: > > > sage: U = DisjointUnionEnumeratedSets(Family(NonNegativeIntegers(), > > Permutations)) > > sage: it = iter(U) > > sage: it.next() > > [] > > > If I try the same thing, replacing "Permutations" with "Partitions", > > it doesn't work: > > > sage: U = DisjointUnionEnumeratedSets(Family(NonNegativeIntegers(), > > Partitions)) > > sage: it = iter(U) > > sage: it.next() > > Hmm, strange, that's supposed to work. And it works just fine for me > with vanilla Sage 4.4.2 (and 4.4.1 and 4.3.4): > > ---------------------------------------------------------------------- > | Sage Version 4.4.2, Release Date: 2010-05-19 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > sage: U = DisjointUnionEnumeratedSets(Family(NonNegativeIntegers(), > ....: Partitions)) > sage: > sage: it = iter(U) > sage: it.next() > [] > sage: it.next() > [1] > > What version of Sage do you have? Did you make any change?
Sorry, it seems to have been a false alarm, although I still don't know what the problem was. In Sage 4.4.2 I had made some changes (in a branch called "profiles"), and that's where I got the bad output in my original message. Then I did this: sage -b main (then it worked without problems) sage -b profiles (then it worked without problems!) So I can't even reproduce it now... -- John -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
