Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple instances of Partitions with side-parameters #14966

Closed
dkrenn opened this issue Jul 24, 2013 · 2 comments
Closed

multiple instances of Partitions with side-parameters #14966

dkrenn opened this issue Jul 24, 2013 · 2 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Jul 24, 2013

If I generate two Partition-objects with some side-paramters I get different objects:

sage: A=Partitions(4, min_length=2)
sage: B=Partitions(4, min_length=2)
sage: id(A), id(B)
(116527952, 116528976)

But when I do the same without side-parameters I get the same object:

sage: A=Partitions(4)
sage: B=Partitions(4)
sage: id(A), id(B)   
(116529232, 116529232)

Both should behave in the same way (AFAIK, like the second example)

CC: @sagetrac-sage-combinat @nthiery

Component: combinatorics

Keywords: Partitions, id, multiple instances

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/14966

@tscrim
Copy link
Collaborator

tscrim commented Jul 29, 2013

comment:1

This is actually not a bug, but instead a consequence of the different classes needed to handle some inputs. In particular, we can't hash the arguments since sometimes they need [lambda] functions as input. Unfortunately I don't think we can work around this, so I'm thinking we should close this ticket as won't-fix.

@jdemeyer
Copy link

Reviewer: Travis Scrimshaw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants