Skip to content

Convert partitions into skew partitions automatically #40580

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

darijgr
Copy link
Contributor

@darijgr darijgr commented Aug 12, 2025

This here should work:

    sage: SkewPartition([2,2,1])
    [2, 2, 1] / []

The present patch makes it so.

Copy link
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a partial fix that will cause confusion because

sage: SP = SkewPartitions()
sage: SP([3,2,1])

will not work. Rather than changing the constructor, better to change the __contains__ and _element_constructor_ of ``SkewPartitions`. Although this will mean doing a bit more work on the subclasses. However, I think it is a better way to do things and be a complete fix.

Copy link

Documentation preview for this PR (built with commit 694e219; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

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

Successfully merging this pull request may close these issues.

2 participants