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

Strange behavior for Permutation() #8918

Closed
sagetrac-lvendramin mannequin opened this issue May 7, 2010 · 5 comments
Closed

Strange behavior for Permutation() #8918

sagetrac-lvendramin mannequin opened this issue May 7, 2010 · 5 comments

Comments

@sagetrac-lvendramin
Copy link
Mannequin

sagetrac-lvendramin mannequin commented May 7, 2010

See these examples:

sage: Permutation([1,2,3])
[1, 2, 3]
sage: Permutation([1,2,3,1])
[1, 2, 3, 1]
sage: [1,2,3] in Permutations()
True
sage: [1,2,3,1] in Permutations()
False
sage: Permutation([1,2,3,1]) in Permutations()
True

CC: @jbandlow

Component: combinatorics

Reviewer: Luis Felipe Tabera Alonso

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

@lftabera
Copy link
Contributor

lftabera commented Sep 8, 2010

comment:1

Yes, this is an error

[1,2,3,1] dos not define a permutation, so the method should raise an error. See also #9831

@KPanComputes
Copy link

comment:2

I think, this in fact can be closed as a duplicate of the ticket you mention (#9831).

Replying to @lftabera:

Yes, this is an error

[1,2,3,1] dos not define a permutation, so the method should raise an error. See also #9831

@KPanComputes KPanComputes removed this from the sage-5.7 milestone Jan 27, 2013
@tscrim
Copy link
Collaborator

tscrim commented Jan 29, 2013

comment:4

One of a few tickets like this. Bonus points if you can find them all.

Also, don't forget to set this to needs_review. Thanks.

@jdemeyer
Copy link

Reviewer: Luis Felipe Tabera Alonso

@jdemeyer
Copy link

Changed author from lvendramin to none

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

4 participants