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?
Cheers,
Nicolas
--
Nicolas M. ThiƩry "Isil" <[email protected]>
http://Nicolas.Thiery.name/
--
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