Skip to content

Make Permission.reverse() keep object identity - #47

Open
deeplook wants to merge 1 commit into
pallets-eco:mainfrom
deeplook:master
Open

Make Permission.reverse() keep object identity#47
deeplook wants to merge 1 commit into
pallets-eco:mainfrom
deeplook:master

Conversation

@deeplook

@deeplook deeplook commented Dec 2, 2016

Copy link
Copy Markdown

This will swap needs and excludes while returning the same changed Permission object without changed object identity.

@deeplook

deeplook commented Dec 2, 2016

Copy link
Copy Markdown
Author

Post-PR thought: Why not just swap things like this: self.needs, self.excludes = self.excludes, self.needs?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant